Skip to content

Commit b9a6668

Browse files
authored
Merge pull request #321 from rtk-rs/ci_script
Fix ci script
2 parents 95c3d35 + e9f5d82 commit b9a6668

File tree

1 file changed

+3
-59
lines changed

1 file changed

+3
-59
lines changed

.github/workflows/release.yml

+3-59
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ permissions:
99
contents: write
1010

1111
jobs:
12-
publish_crates:
13-
name: Release
12+
publish:
13+
name: Publish
1414
runs-on: ubuntu-latest
1515
continue-on-error: true
1616
if: github.ref_type == 'tag'
@@ -28,50 +28,9 @@ jobs:
2828
cargo login $TOKEN
2929
cargo publish --allow-dirty
3030
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-
6931
release:
7032
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']
7534
steps:
7635
- name: Create Release
7736
id: create_release
@@ -82,18 +41,3 @@ jobs:
8241
draft: true
8342
tag_name: ${{ github.ref_name }}
8443
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

Comments
 (0)