Skip to content

Commit

Permalink
Use tag for release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ecbr0wn committed Feb 25, 2024
1 parent 74dc233 commit 82e81a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
# Check the rust formatting
format:
name: rust-format
name: Rust Format
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -29,7 +29,7 @@ jobs:

# Build the Linux release artifacts
tag-release-example:
name: tag-release example
name: Tag Release Example
runs-on: ubuntu-latest
needs: format
strategy:
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
run: md5sum --tag snapcraft-rust-example-${{ matrix.TARGET }}.tar.gz > snapcraft-rust-example-${{ matrix.TARGET }}.md5

- name: Upload the artifact with the workflow run
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: snapcraft-rust-example-${{ matrix.TARGET }}-${{ github.event.inputs.example_version }}
path: snapcraft-rust-example-${{ matrix.TARGET }}.*
Expand All @@ -85,7 +85,7 @@ jobs:
uses: actions/checkout@v4

- name: Download all release artifacts from the workflow
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: Create Example Release
uses: marvinpinto/action-automatic-releases@latest
Expand All @@ -109,6 +109,6 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
repo: a1ecbr0wn/snapcraft
ref: refs/heads/main
ref: ${{ github.ref }}
workflow: snap.yml
inputs: '{ "snap_version": "${{ github.event.inputs.example_version }}" }'
2 changes: 1 addition & 1 deletion .github/workflows/release-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
repo: a1ecbr0wn/snapcraft
ref: refs/heads/main
ref: ${{ github.ref }}
workflow: release-example.yml
inputs: '{ "example_version": "${{ github.ref_name }}" }'

0 comments on commit 82e81a4

Please sign in to comment.