diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 275d63f..b8acdec 100755 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,6 +31,8 @@ jobs: name: Release needs: [build] runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout Project uses: actions/checkout@v3 @@ -39,14 +41,17 @@ jobs: uses: actions/download-artifact@v3 with: name: build - path: matter-hooks.rbxm + path: build + + - name: Rename Build + run: mv build/build.rbxm matter-hooks.rbxm - name: Create Release uses: softprops/action-gh-release@v1 with: - name: Matter Hooks ${{ github.ref }} + name: Matter Hooks ${{ github.ref_name }} body: | - Matter Hooks ${{ github.ref }} is now available! + Matter Hooks ${{ github.ref_name }} is now available! files: | matter-hooks.rbxm @@ -61,5 +66,8 @@ jobs: - name: Install Aftman uses: ok-nick/setup-aftman@v0.3.0 + - name: Wally Login + run: wally login --token ${{ secrets.WALLY_AUTH_TOKEN }} + - name: Publish - run: wally publish --token ${{ secrets.WALLY_AUTH_TOKEN }} + run: wally publish