Skip to content

chore(deps): update actions/attest-build-provenance action to v2.1.0 … #43

chore(deps): update actions/attest-build-provenance action to v2.1.0 …

chore(deps): update actions/attest-build-provenance action to v2.1.0 … #43

Workflow file for this run

name: CD
on:
push:
branches:
- main
permissions: {}
jobs:
ci:
# actions/attest-build-provenance requires these permissions
permissions:
id-token: write
attestations: write
uses: GiganticMinecraft/ObserverUtils/.github/workflows/ci.yaml@main
cd:
name: Release
runs-on: ubuntu-24.04
needs:
- ci
# softprops/action-gh-release requires this permisson
permissions:
contents: write
timeout-minutes: 5
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Output SHA
uses: hudsonm62/short-sha@b5ee0a4109da599fea68b00dcfe5812100ad8d42 # v1.1.0
id: short-sha
- name: Download artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
- name: Create and push a tag
id: tag-name
run: |
TAG_NAME="sha-${SHA}"
git tag "$TAG_NAME"
git push origin "$TAG_NAME"
echo "value=$TAG_NAME" >> "$GITHUB_OUTPUT"
echo "$TAG_NAME"
env:
SHA: ${{ steps.short-sha.outputs.sha }}
- name: Create release
uses: softprops/action-gh-release@7b4da11513bf3f43f9999e90eabced41ab8bb048 # v2.2.0
with:
tag_name: ${{ steps.tag-name.outputs.value }}
draft: false
prerelease: true
files: artifact/*.jar