@@ -9,8 +9,8 @@ permissions:
9
9
contents : write
10
10
11
11
jobs :
12
- publish_crates :
13
- name : Release
12
+ publish :
13
+ name : Publish
14
14
runs-on : ubuntu-latest
15
15
continue-on-error : true
16
16
if : github.ref_type == 'tag'
28
28
cargo login $TOKEN
29
29
cargo publish --allow-dirty
30
30
31
- build :
32
- steps :
33
- - name : Checkout repository
34
- uses : actions/checkout@v4
35
-
36
- - name : Determine archive name
37
- shell : bash
38
- run : |
39
- echo "ARCHIVE=rinex-${{ github.ref_name }}" >> $GITHUB_ENV
40
-
41
- - name : Creating directory for archive
42
- shell : bash
43
- run : |
44
- mkdir -p "$ARCHIVE"
45
- cp {README.md,LICENSE} "$ARCHIVE"
46
-
47
- - name : Gzip archive (Unix)
48
- shell : bash
49
- run : |
50
- tar czf "$ARCHIVE.tar.gz" "$ARCHIVE"
51
- shasum -a 256 "$ARCHIVE.tar.gz" > "$ARCHIVE.tar.gz.sha256"
52
- echo "ASSET=$ARCHIVE.tar.gz" >> $GITHUB_ENV
53
- echo "ASSET_SUM=$ARCHIVE.tar.gz.sha256" >> $GITHUB_ENV
54
-
55
- - name : Upload artifacts
56
- uses : actions/upload-artifact@v3
57
- with :
58
- name : ${{ env.ASSET }}
59
- path : |
60
- ${{ env.ASSET }}
61
-
62
- - name : Upload artifacts (cksum)
63
- uses : actions/upload-artifact@v3
64
- with :
65
- name : ${{ env.ASSET_SUM }}
66
- path : |
67
- ${{ env.ASSET_SUM }}
68
-
69
31
release :
70
32
runs-on : ubuntu-latest
71
- needs : ['build']
72
- # continue even though we failed to download or upload one
73
- # or more artefacts
74
- continue-on-error : true
33
+ needs : ['publish']
75
34
steps :
76
35
- name : Create Release
77
36
id : create_release
82
41
draft : true
83
42
tag_name : ${{ github.ref_name }}
84
43
release_name : ${{ github.ref_name }}
85
-
86
- - name : Download Artifact
87
- uses : actions/download-artifact@v3
88
- with :
89
- name : rinex-${{ github.ref_name }}
90
-
91
- - name : Upload asset
92
- uses : actions/upload-release-asset@v1
93
- env :
94
- GITHUB_TOKEN : ${{ github.token }}
95
- with :
96
- upload_url : ${{ steps.create_release.outputs.upload_url }}
97
- asset_path : rinex-${{ github.ref_name }}
98
- asset_name : rinex-${{ github.ref_name }}
99
- asset_content_type : application/gzip
0 commit comments