forked from adyanth/openwrt-tailscale-enabler
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 975 Bytes
/
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: Releases
on:
push:
branches:
- main
pull_request:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Get data
id: data
run: |
echo "##[set-output name=version;]v$(grep tailscale_version= usr/bin/tailscaled | grep -oE '[[:digit:]]+.[[:digit:]]+.[[:digit:]]+')-$(git rev-parse --short HEAD)-autoupdate"
echo "##[set-output name=commit;]$(git rev-parse HEAD)"
- name: Generate tar archive
run: ./generate-tar.sh ${{ steps.data.outputs.version }}
- name: List
run: ls -alh .
- uses: ncipollo/release-action@v1
with:
artifacts: "openwrt-tailscale-enabler-*.tgz"
# bodyFile: "body.md"
commit: ${{ steps.data.outputs.commit }}
tag: ${{ steps.data.outputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}