Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dianhsu authored Aug 5, 2024
1 parent acf990d commit fd0be6b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ jobs:
new_tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@master
with:
fetch-depth: 0
- uses: SebRollen/toml-action@v1.0.2
- uses: SebRollen/toml-action@main
id: read_toml
with:
file: 'Cargo.toml'
field: 'package.version'

- uses: rickstaa/action-create-tag@v1
- uses: rickstaa/action-create-tag@master
id: "tag_create"
with:
tag: "${{ steps.read_toml.outputs.value }}"
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
dist: ccs-macos-aarch64.zip
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@main
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
run: powershell Compress-Archive -Path ${{ matrix.output }} -DestinationPath ${{ matrix.dist }}

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@main
with:
name: my-artifact
path: ${{ matrix.dist }}
Expand All @@ -106,20 +106,20 @@ jobs:
- build
- new_tag
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@main
with:
ref: ${{ needs.new_tag.outputs.tag_name }}
- name: Show tags
run: git tag -l
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@main
with:
name: my-artifact
path: artifacts
- name: Display structure of downloaded files
run: ls -al artifacts
- name: Create release
uses: ncipollo/release-action@v1
uses: ncipollo/release-action@main
with:
artifacts: artifacts/*
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit fd0be6b

Please sign in to comment.