File tree Expand file tree Collapse file tree 4 files changed +24
-29
lines changed Expand file tree Collapse file tree 4 files changed +24
-29
lines changed Original file line number Diff line number Diff line change 14
14
run : |
15
15
mkdir build
16
16
$buildDir = Join-Path . build
17
- $commandDir = Join-Path . cmd fs
18
- go build -o ${ buildDir} ${commandDir}
17
+ $buildCommand = Join-Path . cmd build
18
+ go run $buildCommand -o $buildDir
Original file line number Diff line number Diff line change
1
+ name : " Latest"
2
+ description : ' Update the GitHub release tagged "latest"'
3
+ inputs :
4
+ github-token :
5
+ description : " Token used to publish releases"
6
+ required : true
7
+ runs :
8
+ using : " composite"
9
+ steps :
10
+ - shell : bash
11
+ env :
12
+ GH_TOKEN : ${{ inputs.github-token }}
13
+ run : |
14
+ git tag --force latest master
15
+ git push --force origin latest
16
+ pushd artifact
17
+ gh release upload --clobber latest *
18
+ popd
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- master
6
- tags :
7
- - ' prerelease'
8
- - ' release'
9
6
pull_request :
10
7
jobs :
11
8
Test :
18
15
- uses : ./.github/actions/setup
19
16
- uses : ./.github/actions/test
20
17
Build :
21
- if : github.ref == 'refs/tags/prerelease' || github.ref == 'refs/tags/release '
18
+ if : github.ref == 'refs/heads/master '
22
19
strategy :
23
20
matrix :
24
21
os : [windows-latest, macos-latest, ubuntu-latest]
@@ -28,13 +25,13 @@ jobs:
28
25
- uses : ./.github/actions/setup
29
26
- uses : ./.github/actions/build
30
27
- uses : ./.github/actions/archive
31
- Prerelease :
32
- if : github.ref == 'refs/tags/prerelease' # TODO: invert this? If prerelease; setup + test + build + release
28
+ Release :
29
+ if : github.ref == 'refs/heads/master'
33
30
needs : [Test, Build]
34
31
runs-on : ubuntu-latest
35
32
steps :
36
33
- uses : actions/checkout@v3
37
34
- uses : actions/download-artifact@v3
38
- - uses : ./.github/actions/prerelease
35
+ - uses : ./.github/actions/latest
39
36
with :
40
37
github-token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments