Skip to content

Commit

Permalink
Misc GH Workflow changes
Browse files Browse the repository at this point in the history
- Bumped setup-foreman & checkout
- Switched create release to GH CLI.
  • Loading branch information
mkargus committed Mar 15, 2024
1 parent 958218e commit a24d291
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: roblox/setup-foreman@v1
- uses: roblox/setup-foreman@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -32,9 +32,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: roblox/setup-foreman@v1
- uses: roblox/setup-foreman@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}

Expand Down
19 changes: 5 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: roblox/setup-foreman@v1
- uses: roblox/setup-foreman@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -27,16 +27,7 @@ jobs:
- name: Build plugin
run: rojo build default.project.json -o PartToTerrain.rbxm

- name: Get release info
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT

# TODO: Look into plugin uploading via Open Cloud when supported.

- name: Create Github release
uses: softprops/action-gh-release@v1
with:
name: ${{ steps.get_version.outputs.VERSION }}
fail_on_unmatched_files: true
files: PartToTerrain.rbxm
draft: true
env:
GH_TOKEN: ${{ github.token }}
run: gh release create ${{ github.ref_name }} -t ${{ github.ref_name }} -d PartToTerrain.rbxm

0 comments on commit a24d291

Please sign in to comment.