forked from karlmcguire/ige
-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (31 loc) · 1.2 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: release
on:
push:
tags:
- v*
jobs:
pkg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: curl
run: |
curl --show-error --fail -w "HTTP %{http_code}\n" -o - 'https://pkg.go.dev/fetch/github.com/gotd/ige@${{ 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/gotd/ige@${{ steps.vars.outputs.tag }}' \
-H 'accept-language: en-US,en;q=0.9,ru;q=0.8' \
--compressed