Skip to content

Commit

Permalink
Merge pull request #4 from ScrewTSW/fix-switch-to-officially-maintain…
Browse files Browse the repository at this point in the history
…ed-actions

Switching to sanctioned release action
  • Loading branch information
trippyone authored Sep 18, 2024
2 parents 9d550cd + c5e2fbf commit 28938e3
Showing 1 changed file with 6 additions and 28 deletions.
34 changes: 6 additions & 28 deletions .github/workflows/tag-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Download artifacts (Linux)
uses: actions/download-artifact@v4
with:
Expand All @@ -70,32 +67,13 @@ jobs:
name: FikaServerTools_windows-latest_${{ github.ref_name }}
path: ./dist/windows

- name: Create release
- name: Publish pre-release
id: create_release
uses: Rohit-Kuinkel/create-release-node-update@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
release_name: "Fika-ServerTools ${{ github.ref_name }}"
name: "Fika-ServerTools ${{ github.ref_name }}"
prerelease: true

- name: Upload Linux build
uses: Rohit-Kuinkel/upload-release-asset-node-update@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/linux/FikaServerTools_${{ github.ref_name }}-linux64.zip
asset_name: FikaServerTools_${{ github.ref_name }}-linux64.zip
asset_content_type: application/zip

- name: Upload Windows build
uses: Rohit-Kuinkel/upload-release-asset-node-update@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/windows/FikaServerTools_${{ github.ref_name }}-windows64.zip
asset_name: FikaServerTools_${{ github.ref_name }}-windows64.zip
asset_content_type: application/zip
files: |
./dist/linux/FikaServerTools_${{ github.ref_name }}-linux64.zip
./dist/windows/FikaServerTools_${{ github.ref_name }}-windows64.zip

0 comments on commit 28938e3

Please sign in to comment.