Skip to content

Commit

Permalink
update:release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Dozingfiretruck committed Aug 28, 2024
1 parent 11279fe commit a7d22e6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ jobs:
sudo apt-get install -y git make gcc p7zip-full libsdl2-dev xmake
sudo apt-get upgrade -y
xmake update
# - uses: xmake-io/github-action-setup-xmake@v1
# with:
# xmake-version: latest
- name: build
run: |
xrepo update-repo
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@ jobs:
run: |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew install make gcc sdl2 xmake
brew install make sdl2 xmake
xmake update
# - uses: xmake-io/github-action-setup-xmake@v1
# with:
# xmake-version: latest
- name: build
run: |
xrepo update-repo
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
Expand All @@ -30,14 +31,16 @@ jobs:
run: echo ${{ github.sha }} > test.txt

- name: Publish file to release
uses: actions/upload-release-[email protected]
uses: svenstaro/upload-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./test.txt
asset_name: test.txt
asset_content_type: application/zip
repo_token: ${{ secrets.GITHUB_TOKEN }}
file_glob: true
file: ./test.txt
tag: ${{ github.ref }}
overwrite: true




Expand Down

0 comments on commit a7d22e6

Please sign in to comment.