From d930abf9ded7674944ccffa39845df2e2959b14d Mon Sep 17 00:00:00 2001 From: Kurochan Date: Fri, 19 Jan 2024 11:24:37 +0900 Subject: [PATCH] Add release flow (#7) * Add release flow * update --- .github/workflows/distribute.yml | 16 ++++++++++++++++ .github/workflows/pr.yml | 20 ++++++++++++++++++++ RELEASE | 6 ++++++ 3 files changed, 42 insertions(+) create mode 100644 RELEASE diff --git a/.github/workflows/distribute.yml b/.github/workflows/distribute.yml index 134a74d..c061f8b 100644 --- a/.github/workflows/distribute.yml +++ b/.github/workflows/distribute.yml @@ -7,11 +7,27 @@ on: workflow_dispatch: jobs: + release: + runs-on: ubuntu-22.04 + permissions: + contents: write + timeout-minutes: 5 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: pipe-cd/actions-gh-release@v2.6.0 + with: + release_file: "RELEASE" + token: ${{ secrets.GITHUB_TOKEN }} + build: runs-on: ubuntu-22.04 permissions: contents: read packages: write + needs: release strategy: fail-fast: false matrix: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index c66de25..d41796b 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -10,6 +10,21 @@ on: workflow_dispatch: jobs: + release-check: + runs-on: ubuntu-22.04 + permissions: + contents: read + timeout-minutes: 5 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: pipe-cd/actions-gh-release@v2.6.0 + with: + release_file: "RELEASE" + token: ${{ secrets.GITHUB_TOKEN }} + build: runs-on: ubuntu-22.04 permissions: @@ -24,6 +39,11 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: pipe-cd/actions-gh-release@v2.6.0 + with: + release_file: "RELEASE" + token: ${{ secrets.GITHUB_TOKEN }} + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 diff --git a/RELEASE b/RELEASE new file mode 100644 index 0000000..6f29bf4 --- /dev/null +++ b/RELEASE @@ -0,0 +1,6 @@ +tag: v0.0.0 +prerelease: false + +releaseNoteGenerator: + showCommitter: false + useReleaseNoteBlock: true