Skip to content

Commit

Permalink
Changed action commands.
Browse files Browse the repository at this point in the history
Changed to direct GitHub CLI commands.
  • Loading branch information
SirMallard committed Aug 12, 2024
1 parent 56783d5 commit d70b8fe
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,32 @@ jobs:
- uses: actions/checkout@v4

- name: Create Release
uses: ncipollo/release[email protected]
with:
draft: true
run: gh release create ${{ github.ref_name }} --draft --verify-tag --title ${{ github.ref_name }} --notes ${{ github.ref_name }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-files:
needs: ["create-release"]
name: "Build files"
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
include:
- file: Iris.rbxm
command: rojo build -o Iris.rbxm ./default.project.json
- file: Iris.rbxl
command: rojo build -o Iris.rbxl ./demo.project.json
- file: Iris.zip
command: zip -r Iris.zip lib
steps:
- uses: actions/checkout@v4

- name: setup-aftman
uses: ok-nick/[email protected]
with:
version: v0.3.0
cache: true

- name: Build file
run: ${{ matrix.command }}
- name: Build files
run: |
rojo build -o Iris.rbxm ./default.project.json
rojo build -o Iris.rbxl ./demo.project.json
zip -r Iris.zip lib
- name: Upload file
uses: svenstaro/[email protected]
with:
file: ${{ matrix.file }}
- name: Upload files
run: |
gh release upload ${{ github.ref_name }} ./Iris.rbxm ./Iris.rbxl ./Iris.zip
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d70b8fe

Please sign in to comment.