Skip to content

Commit

Permalink
ci: add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Nov 7, 2021
1 parent 24622ed commit 4ee1e57
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: release

on: {create: {tags: [v*]}}

jobs:
fetch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: curl
uses: actions/checkout@master
run: |
curl 'https://pkg.go.dev/fetch/github.com/go-faster/jx@${{ steps.vars.outputs.tag }}' \
-X 'POST' \
-H 'authority: pkg.go.dev' \
-H 'content-length: 0' \
-H 'sec-ch-ua: "Google Chrome";v="95", "Chromium";v="95", ";Not A Brand";v="99"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36' \
-H 'sec-ch-ua-platform: "Linux"' \
-H 'accept: */*' \
-H 'origin: https://pkg.go.dev' \
-H 'sec-fetch-site: same-origin' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-dest: empty' \
-H 'referer: https://pkg.go.dev/github.com/go-faster/jx@v0.21.3' \
-H 'accept-language: en-US,en;q=0.9,ru;q=0.8' \
--compressed

0 comments on commit 4ee1e57

Please sign in to comment.