diff --git a/.github/workflows/autorelease.yml b/.github/workflows/autorelease.yml deleted file mode 100644 index 35271a3..0000000 --- a/.github/workflows/autorelease.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Create Rust Release - -on: - push: - branches: - - main - paths: - - 'Cargo.toml' - -permissions: # these permissions are required for the actions to run - contents: write - -jobs: - auto-release: - uses: init4tech/actions/.github/workflows/auto-release-rust.yml@main - with: - binary-name: 'zenith-builder-example' diff --git a/.github/workflows/ghcr.yml b/.github/workflows/ghcr.yml new file mode 100644 index 0000000..a0de390 --- /dev/null +++ b/.github/workflows/ghcr.yml @@ -0,0 +1,21 @@ +name: Release GHCR + +on: + release: + types: [published] + push: + branches: + - swanny-ghcr + workflow_dispatch: + +# simplest example of using the rust-base action +jobs: + ghcr-release: + uses: init4tech/actions/.github/workflows/ghcr.yml@main + permissions: + contents: read + packages: write + attestations: write + id-token: write + secrets: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file