⛳ alerts for any ctfd instance via ntfy

feat: add release workflow

dunkirk.sh c7cca3bc 5946aac2

verified
+74
+74
.github/workflows/release.yml
··· 1 + name: Release 2 + 3 + on: 4 + release: 5 + types: [created] 6 + 7 + jobs: 8 + build-and-upload: 9 + runs-on: ubuntu-latest 10 + permissions: 11 + contents: write 12 + 13 + steps: 14 + - name: Checkout repository 15 + uses: actions/checkout@v4 16 + 17 + - name: Install Nix 18 + uses: DeterminateSystems/nix-installer-action@main 19 + 20 + - name: Configure Nix cache 21 + uses: DeterminateSystems/magic-nix-cache-action@main 22 + 23 + - name: Build releases using flake 24 + run: nix run .#ctfd-alerts-build 25 + 26 + - name: Upload Linux AMD64 binary 27 + uses: actions/upload-release-asset@v1 28 + env: 29 + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 30 + with: 31 + upload_url: ${{ github.event.release.upload_url }} 32 + asset_path: ./bin/ctfd-alerts-linux-amd64 33 + asset_name: ctfd-alerts-linux-amd64 34 + asset_content_type: application/octet-stream 35 + 36 + - name: Upload Linux ARM64 binary 37 + uses: actions/upload-release-asset@v1 38 + env: 39 + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 40 + with: 41 + upload_url: ${{ github.event.release.upload_url }} 42 + asset_path: ./bin/ctfd-alerts-linux-arm64 43 + asset_name: ctfd-alerts-linux-arm64 44 + asset_content_type: application/octet-stream 45 + 46 + - name: Upload macOS AMD64 binary 47 + uses: actions/upload-release-asset@v1 48 + env: 49 + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 50 + with: 51 + upload_url: ${{ github.event.release.upload_url }} 52 + asset_path: ./bin/ctfd-alerts-darwin-amd64 53 + asset_name: ctfd-alerts-darwin-amd64 54 + asset_content_type: application/octet-stream 55 + 56 + - name: Upload macOS ARM64 binary 57 + uses: actions/upload-release-asset@v1 58 + env: 59 + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 60 + with: 61 + upload_url: ${{ github.event.release.upload_url }} 62 + asset_path: ./bin/ctfd-alerts-darwin-arm64 63 + asset_name: ctfd-alerts-darwin-arm64 64 + asset_content_type: application/octet-stream 65 + 66 + - name: Upload Windows AMD64 binary 67 + uses: actions/upload-release-asset@v1 68 + env: 69 + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 70 + with: 71 + upload_url: ${{ github.event.release.upload_url }} 72 + asset_path: ./bin/ctfd-alerts-windows-amd64.exe 73 + asset_name: ctfd-alerts-windows-amd64.exe 74 + asset_content_type: application/octet-stream