diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f55194f..fef1b6f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,23 +1,27 @@ name: "Release" + on: workflow_dispatch: - push: - branches: - - main + inputs: + create_release: + description: "Should this push create a release?" + required: true + default: "false" + type: boolean jobs: release: + if: ${{ github.ref == 'refs/heads/main' && github.event.inputs.create_release == 'true' }} + runs-on: ubuntu-24.04 permissions: packages: write - if: ${{ github.ref == 'refs/heads/main' }} - runs-on: ubuntu-24.04 + steps: - - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 - - name: "Publish" + - name: Publish uses: devcontainers/action@v1 with: publish-features: "true" base-path-to-features: "./src" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}