diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..1f63b2f2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,48 @@ +on: + push: + branches: + - rewrite + pull_request: + workflow_dispatch: + +jobs: + build: + runs-on: macos-latest + steps: + - name: Check out repositoty + uses: actions/checkout@v3 + + - name: Set up nodejs + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Set up npm project + run: npm install + + - name: build project + run: npm run buildall + + - name: debug + run: ls -Al && pwd + + - name: Move x64 exe + run: cp ./dist/SteamDepotDownloaderGUI*.exe ./SteamDepotDownloaderGUI-${{ github.run_number }}.exe + + - name: Move x64 AppImage + run: cp `ls -1 dist/ | grep -E "SteamDepotDownloaderGUI-[0-9]+\.[0-9]+\.[0-9]+\.AppImage"` ./SteamDepotDownloaderGUI-${{ github.run_number }}.AppImage + + - name: Move x64 zip + run: cp ./dist/steamdepotdownloadergui-*.zip ./SteamDepotDownloaderGUI-${{ github.run_number }}.zip + + - name: Move arm64 AppImage + run: cp `ls -1 dist/ | grep -E "SteamDepotDownloaderGUI-[0-9]+\.[0-9]+\.[0-9]+\-arm64.AppImage"` ./SteamDepotDownloaderGUI-${{ github.run_number }}.AppImage + + - name: Move arm64 zip + run: cp ./dist/steamdepotdownloadergui-*.*.*-arm64.zip ./SteamDepotDownloaderGUI-${{ github.run_number }}-arm64.zip + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: SteamDepotDownloaderGUI-${{ github.run_number }} + path: SteamDepotDownloaderGUI-${{ github.run_number }}*.{exe,AppImage,zip} \ No newline at end of file