Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ci script #321

Merged
merged 1 commit into from
Mar 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 3 additions & 59 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ permissions:
contents: write

jobs:
publish_crates:
name: Release
publish:
name: Publish
runs-on: ubuntu-latest
continue-on-error: true
if: github.ref_type == 'tag'
Expand All @@ -28,50 +28,9 @@ jobs:
cargo login $TOKEN
cargo publish --allow-dirty

build:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Determine archive name
shell: bash
run: |
echo "ARCHIVE=rinex-${{ github.ref_name }}" >> $GITHUB_ENV

- name: Creating directory for archive
shell: bash
run: |
mkdir -p "$ARCHIVE"
cp {README.md,LICENSE} "$ARCHIVE"

- name: Gzip archive (Unix)
shell: bash
run: |
tar czf "$ARCHIVE.tar.gz" "$ARCHIVE"
shasum -a 256 "$ARCHIVE.tar.gz" > "$ARCHIVE.tar.gz.sha256"
echo "ASSET=$ARCHIVE.tar.gz" >> $GITHUB_ENV
echo "ASSET_SUM=$ARCHIVE.tar.gz.sha256" >> $GITHUB_ENV

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ env.ASSET }}
path: |
${{ env.ASSET }}

- name: Upload artifacts (cksum)
uses: actions/upload-artifact@v3
with:
name: ${{ env.ASSET_SUM }}
path: |
${{ env.ASSET_SUM }}

release:
runs-on: ubuntu-latest
needs: ['build']
# continue even though we failed to download or upload one
# or more artefacts
continue-on-error: true
needs: ['publish']
steps:
- name: Create Release
id: create_release
Expand All @@ -82,18 +41,3 @@ jobs:
draft: true
tag_name: ${{ github.ref_name }}
release_name: ${{ github.ref_name }}

- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: rinex-${{ github.ref_name }}

- name: Upload asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: rinex-${{ github.ref_name }}
asset_name: rinex-${{ github.ref_name }}
asset_content_type: application/gzip
Loading