File tree Expand file tree Collapse file tree 8 files changed +2498
-33
lines changed Expand file tree Collapse file tree 8 files changed +2498
-33
lines changed Original file line number Diff line number Diff line change 11# this is from https://github.com/extrawurst/gitui/blob/master/.github/workflows/cd.yml
2- # this does not work now!
2+
33name : spa-client-cd
44
55on :
@@ -25,22 +25,21 @@ jobs:
2525 uses : actions/checkout@v3
2626 with :
2727 submodules : true
28- ref : ${{github.event.inputs.tag}}
2928
3029 - name : Install Rust
31- uses : actions-rs/toolchain@v2
30+ uses : actions-rs/toolchain@v1
3231 with :
3332 toolchain : stable
34-
35- - name : Install Node
36- uses : actions/setup-node@v2
33+ - name : Cache cargo registry
34+ uses : actions/cache@v2
3735 with :
38- node-version : " 16"
39- cache : " npm"
40-
41- - name : Build
42- run : cargo build
43-
36+ path : ~/.cargo/registry
37+ key : ${{ matrix.os }}-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
38+ - name : Cache cargo index
39+ uses : actions/cache@v2
40+ with :
41+ path : ~/.cargo/git
42+ key : ${{ matrix.os }}-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }}
4443 - name : Setup MUSL
4544 if : matrix.os == 'ubuntu-latest'
4645 run : |
5756
5857 - name : Build Release Win
5958 if : matrix.os == 'windows-latest'
60- run : make release-win
59+ run : make release-win
60+
61+ - name : Upload artifact
62+ uses : actions/upload-artifact@v2
63+ with :
64+ path : ./release/*
65+ if-no-files-found : error
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ name: sap-client docker release
33on :
44 workflow_dispatch :
55 inputs :
6- tag :
6+ version :
77 required : true
8- description : " git tag to release"
8+ description : " version to release"
99
1010jobs :
1111 docker :
3434 file : SPA-Client.Dockerfile
3535 platforms : linux/amd64,linux/arm64
3636 push : true
37- tags : timzaak/spa-client:${{github.event.inputs.tag }}
37+ tags : timzaak/spa-client:${{github.event.inputs.version }}
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ name: spa-server-docker-release
33on :
44 workflow_dispatch :
55 inputs :
6- tag :
6+ version :
77 required : true
8- description : " git tag to release"
8+ description : " version to release"
99
1010jobs :
1111 docker :
3333 context : .
3434 platforms : linux/amd64,linux/arm64
3535 push : true
36- tags : timzaak/spa-server:${{github.event.inputs.tag }}
36+ tags : timzaak/spa-server:${{github.event.inputs.version }}
Original file line number Diff line number Diff line change 11/target
2- Cargo.lock
32.idea
43/tmp
54config.conf
You can’t perform that action at this time.
0 commit comments