Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mfreeborn committed Jun 11, 2022
1 parent 5e3c063 commit 6731e97
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/build_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@ jobs:
cross: true,
}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Set up Rust toolchain
uses: actions-rs/toolchain@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
Expand All @@ -60,14 +58,9 @@ jobs:
- name: Build archive
shell: bash
run: |
staging="heliocron-${{ env.RELEASE_VERSION }}-${{ matrix.target }}"
mkdir -p "$staging"/
cp {README.md,LICENSE-APACHE,LICENSE-MIT} "$staging/"
cp "target/${{ matrix.target }}/release/heliocron" "$staging/"
tar czf "$staging.tar.gz" "$staging"
echo "ASSET=$staging.tar.gz" >> $GITHUB_ENV
cp target/${{ matrix.info.target }}/release/heliocron ./heliocron
tar -czvf "heliocron-${GITHUB_REF#refs/tags/}-${{ matrix.info.target }}.tar.gz" heliocron README.md LICENSE-APACHE LICENSE-MIT
echo "ASSET=heliocron-${GITHUB_REF#refs/tags/}-${{ matrix.info.target }}.tar.gz" >> $GITHUB_ENV
- name: Create release directory for artifact, move file
shell: bash
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
- name: Publish to crates.io
run: cargo publish --allow-dirty

initialize-gh-release:
name: initialize-gh-release
initialise-gh-release:
name: initialise-gh-release
runs-on: ubuntu-latest
steps:
- name: Get the release version from the tag
Expand All @@ -46,7 +46,7 @@ jobs:
path: release-version

build-release:
needs: [initialize-gh-release]
needs: [initialise-gh-release]
uses: ./.github/workflows/build_releases.yml

upload-release:
Expand Down

0 comments on commit 6731e97

Please sign in to comment.