@@ -24,42 +24,42 @@ jobs:
24
24
with :
25
25
issue-number : ${{ github.event.issue.number }}
26
26
body : |
27
- Starting [`${{ steps.snapshot_id.outputs.SNAPSHOT_ID }}`](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) release
27
+ Starting snapshot release [`${{ steps.snapshot_id.outputs.SNAPSHOT_ID }}`](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
28
28
29
- # - name: Set up Go
30
- # uses: actions/setup-go@v3
31
- # with:
32
- # go-version: 1.18
33
- #
34
- # - name: Install PDF generation dependencies
35
- # run: |
36
- # sudo apt-get update
37
- # sudo apt-get install -y pandoc texlive-xetex
38
- #
39
- # - run: go generate -x
40
- # - run: mv pathvector*.pdf pathvector-$(git describe --tags "$(git rev-list --tags --max-count=1)" | cut -c2-)-SNAPSHOT-$(git rev-parse --short HEAD) .pdf
41
- #
42
- # - name: Run GoReleaser
43
- # uses: goreleaser/goreleaser-action@v2
44
- # with:
45
- # version: latest
46
- # args: release --snapshot --rm-dist --release-header distrib/snapshot-header.md
47
- # env:
48
- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49
- # FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
50
- #
51
- # - uses: actions/upload-artifact@v3
52
- # with:
53
- # path: |
54
- # dist/pathvector*.deb
55
- # dist/pathvector*.rpm
56
- # dist/pathvector*checksums.txt
57
- # dist/pathvector*.tar.gz
58
- # pathvector*.pdf
29
+ - name : Set up Go
30
+ uses : actions/setup-go@v3
31
+ with :
32
+ go-version : 1.18
33
+
34
+ - name : Install PDF generation dependencies
35
+ run : |
36
+ sudo apt-get update
37
+ sudo apt-get install -y pandoc texlive-xetex
38
+
39
+ - run : go generate -x
40
+ - run : mv pathvector*.pdf ${{ steps.snapshot_id.outputs.SNAPSHOT_ID }} .pdf
41
+
42
+ - name : Run GoReleaser
43
+ uses : goreleaser/goreleaser-action@v2
44
+ with :
45
+ version : latest
46
+ args : release --snapshot --rm-dist --release-header distrib/snapshot-header.md
47
+ env :
48
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49
+ FURY_TOKEN : ${{ secrets.FURY_TOKEN }}
50
+
51
+ - uses : actions/upload-artifact@v3
52
+ with :
53
+ path : |
54
+ dist/pathvector*.deb
55
+ dist/pathvector*.rpm
56
+ dist/pathvector*checksums.txt
57
+ dist/pathvector*.tar.gz
58
+ pathvector*.pdf
59
59
60
60
- name : Post end comment
61
61
uses : peter-evans/create-or-update-comment@v2
62
62
with :
63
63
issue-number : ${{ github.event.issue.number }}
64
64
body : |
65
- [`${{ steps.snapshot_id.outputs.SNAPSHOT_ID }}`](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) finished
65
+ Finished snapshot release [`${{ steps.snapshot_id.outputs.SNAPSHOT_ID }}`](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
0 commit comments