From a24d291534fa8be612090547204547f20a46857b Mon Sep 17 00:00:00 2001 From: mkargus <14226603+mkargus@users.noreply.github.com> Date: Fri, 15 Mar 2024 11:22:51 -0400 Subject: [PATCH] Misc GH Workflow changes - Bumped setup-foreman & checkout - Switched create release to GH CLI. --- .github/workflows/ci.yml | 8 ++++---- .github/workflows/release.yml | 19 +++++-------------- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2fc42e..aba972e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} @@ -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 }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 348fbe3..c64f04d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} @@ -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