File tree 1 file changed +17
-14
lines changed 1 file changed +17
-14
lines changed Original file line number Diff line number Diff line change @@ -36,26 +36,29 @@ jobs:
36
36
uses : actions/checkout@v2
37
37
with :
38
38
fetch-depth : 0
39
- - name : Set up Go
40
- uses : actions/setup-go@v2
41
- with :
42
- go-version : 1.17
43
- - name : Add packaging config to goreleaser config
44
- run : cat .goreleaser.pkg.yml >> .goreleaser.yml
39
+ - name : Get tag
40
+ id : get_tag
41
+ run : echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
42
+ - name : Get version
43
+ id : get_version
44
+ run : echo ::set-output name=VERSION::${TAG##v}
45
+ env :
46
+ TAG : ${{ steps.get_tag.outputs.TAG }}
45
47
- name : create gpg key
46
48
run : echo "${GPG_KEY}" > /root/gpg
47
49
env :
48
50
GPG_KEY : ${{ secrets.GPG_KEY }}
51
+ - name : import gpg key
52
+ run : gpg --pinentry-mode=loopback --passphrase "$GPG_PASSPHRASE" --import /root/gpg
53
+ env :
54
+ GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
55
+ - name : Install make
56
+ run : apt install make -y
49
57
- name : Build and package deb
50
- run : ./goreleaser release --skip-validate --rm-dist --skip-publish
51
- # - name: Build and package deb
52
- # uses: goreleaser/goreleaser-action@v2
53
- # with:
54
- # version: latest
55
- # args: release --skip-validate --rm-dist --skip-publish
58
+ run : make deb-source
56
59
env :
57
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
58
- GPG_KEY : ' /root/gpg '
60
+ VERSION : ${{ steps.get_version.outputs.VERSION }}
61
+ GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
59
62
package-rpm :
60
63
runs-on : ubuntu-latest
61
64
container : fedora:latest
You can’t perform that action at this time.
0 commit comments