From 203a44b3d21c3c94d83d3424beb0f48692bf671c Mon Sep 17 00:00:00 2001 From: NepuShiro Date: Mon, 1 Jun 2026 15:43:45 -0500 Subject: [PATCH] Remove Web, and enable releases --- .github/workflows/main.yml | 47 ++++++++++++++------------------------ 1 file changed, 17 insertions(+), 30 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3bffbba..66cacf7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -65,7 +65,7 @@ jobs: cp README.md artifacts/${{ matrix.identifier }}/ - name: Upload build artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: libsm64_${{ matrix.identifier }} path: artifacts/${{ matrix.identifier }} @@ -75,42 +75,29 @@ jobs: runs-on: ubuntu-latest needs: Build - # IMPORTANT: prevents running on tag pushes if: github.ref_type == 'branch' steps: - name: Download artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: path: artifacts + - name: Get short SHA + id: vars + shell: bash + run: | + SHORT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-7) + echo "short_sha=$SHORT_SHA" >> $GITHUB_OUTPUT + - name: Create Release - id: release - uses: gitea/actions/gitea-release-action@v1 + uses: akkuman/gitea-release-action@v1 with: - api_key: ${{ secrets.GITEA_TOKEN }} - owner: NepuShiro - repo: libsm64 - tag_name: build-${{ github.sha }} - release_name: Snapshot Build ${{ github.sha }} + token: ${{ secrets.GITEA_TOKEN }} + repository: NepuShiro/libsm64 + tag_name: build-${{ steps.vars.outputs.short_sha }} + name: Snapshot Build ${{ steps.vars.outputs.short_sha }} prerelease: true - - - name: Upload Linux artifact - uses: actions/upload-release-asset@v1 - with: - upload_url: ${{ steps.release.outputs.upload_url }} - asset_path: artifacts/libsm64_linux.zip - asset_name: libsm64_linux.zip - asset_content_type: application/zip - env: - GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }} - - - name: Upload Windows artifact - uses: actions/upload-release-asset@v1 - with: - upload_url: ${{ steps.release.outputs.upload_url }} - asset_path: artifacts/libsm64_windows.zip - asset_name: libsm64_windows.zip - asset_content_type: application/zip - env: - GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }} \ No newline at end of file + files: | + artifacts/libsm64_linux/** + artifacts/libsm64_windows/** \ No newline at end of file