Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
ysawa0 committed Nov 4, 2023
1 parent 42de96c commit 397162a
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@ on:
# types: [synchronize, opened, reopened, ready_for_review]

jobs:
build-and-release:
create-release:
name: Create Release
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Create release
run: gh release create ${{ github.ref_name }} --generate-notes --title "Version ${{ github.ref_name }}"

upload-release:
name: Build and Release
permissions:
contents: write
Expand All @@ -33,20 +42,21 @@ jobs:
if: runner.os != 'windows-latest'
run: zip -j cpa-${{ runner.os }}.zip ./target/release/cpa

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ github.ref_name }} "cpa-${{ runner.os }}.zip" --clobber

# run: tar czvf cpa-${{ runner.os }}.tar.gz -C ./target/release cpa
# - name: Archive Release Binary (Windows)
# if: runner.os == 'windows-latest'
# run: Compress-Archive -Path ./target/release/cpa.exe -DestinationPath windows-cpa.zip
# shell: pwsh
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create ${{ github.ref_name }} "cpa-${{ runner.os }}.zip" --generate-notes --title "Version ${{ github.ref_name }}"
# run: gh release create ${{ github.ref_name }} "./target/release/cpa" --generate-notes --title "Version ${{ github.ref_name }}"
# run: gh release create ${{ github.ref_name }} "./target/release/cpa" --generate-notes --title "Version ${{ github.ref_name }}"

# run: >-
# echo ${{ github.ref_name }}
# gh release create ${{ github.ref_name }} "./target/release/cpa" --generate-notes --title "Version ${{ github.ref_name }}"
# run: >-
# echo ${{ github.ref_name }}
# gh release create ${{ github.ref_name }} "./target/release/cpa" --generate-notes --title "Version ${{ github.ref_name }}"

# - name: Create Release
# uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 397162a

Please sign in to comment.