Skip to content

Commit

Permalink
Switch to a better release action (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
viluon authored Jun 10, 2024
1 parent 34fd802 commit 9333987
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,23 @@ jobs:
retention-days: 90
- name: test
run: cargo test --verbose --release
- name: release
- name: create release
if: ${{ github.ref == 'refs/heads/main' }}
uses: marvinpinto/action-automatic-releases@v1.2.1
uses: softprops/action-gh-release@v1
id: create-release
with:
# GitHub secret token
repo_token: "${{ secrets.GITHUB_TOKEN }}"
# Git tag (for automatic releases)
automatic_release_tag: latest
# Should this release be marked as a draft?
draft: true
prerelease: true
# Release title (for automatic releases)
title: afx preview
# Assets to upload to the release
fail_on_unmatched_files: true
files: |
afx.upx
target/release/afx
name: afx preview
tag_name: latest
- name: publish release
if: ${{ github.ref == 'refs/heads/main' }}
uses: eregon/publish-release@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
release_id: ${{ steps.create-release.outputs.id }}

0 comments on commit 9333987

Please sign in to comment.