-
Notifications
You must be signed in to change notification settings - Fork 34
40 lines (38 loc) · 1.08 KB
/
Copy pathgit-release-test.yml
File metadata and controls
40 lines (38 loc) · 1.08 KB
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
34
35
36
37
38
39
40
name: Test create release with .zip files
on:
push:
branches:
- git-release
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Check output
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
run: |
echo $RELEASE_VERSION
echo ${{ steps.vars.outputs.tag }}
- name: Moving build to dist-directory
run: ./copyFilesToDist.sh
shell: bash
env:
GITHUB_REF_VARIABLE: ${{ steps.vars.outputs.tag }}
- name: Release
uses: docker://antonyurchenko/git-release:latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
UNRELEASED: "update"
ALLOW_EMPTY_CHANGELOG: true
with:
args: |
dist/*.zip
darwin-amd64.zip
linux-amd64.zip
windows-amd64.zip