fix devbox phase generate. (#5120) #38
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
env: | |
# Common versions | |
GO_VERSION: "1.20" | |
DEFAULT_OWNER: "labring" | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- "*" | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Golang with cache | |
uses: magnetikonline/action-golang-cache@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Install Dependencies | |
run: | | |
sudo apt update && sudo apt install -y gcc-aarch64-linux-gnu \ | |
libbtrfs-dev libgpgme-dev libdevmapper-dev \ | |
qemu-user-static binfmt-support | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GH_RELEASE_PAT }} | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v3 | |
with: | |
args: release --clean --release-footer-tmpl=scripts/release/footer.md.tmpl --release-header-tmpl=scripts/release/head.md.tmpl | |
env: | |
USERNAME: ${{ github.repository_owner }} | |
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }} | |
FURY_TOKEN: ${{ secrets.FURY_TOKEN }} | |
sync: | |
runs-on: ubuntu-20.04 | |
needs: | |
- goreleaser | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Fetch Current version | |
id: get-current-tag | |
uses: actions-ecosystem/[email protected] | |
- name: Renew issue and Sync Patch Images | |
uses: labring/[email protected] | |
if: ${{ github.repository_owner == env.DEFAULT_OWNER }} | |
with: | |
version: v0.0.8-rc1 | |
env: | |
GH_TOKEN: "${{ secrets.GH_PAT }}" | |
SEALOS_TYPE: "issue_renew" | |
SEALOS_ISSUE_TITLE: "[DaylyReport] Auto build for sealos" | |
SEALOS_ISSUE_BODYFILE: "scripts/ISSUE_RENEW.md" | |
SEALOS_ISSUE_LABEL: "dayly-report" | |
SEALOS_ISSUE_TYPE: "day" | |
SEALOS_ISSUE_REPO: "labring-actions/cluster-image" | |
SEALOS_COMMENT_BODY: "/imagebuild_apps sealos-patch ${{steps.get-current-tag.outputs.tag }}" | |
- name: Renew issue and Sync Images | |
uses: labring/[email protected] | |
if: ${{ github.repository_owner == env.DEFAULT_OWNER }} | |
with: | |
version: v0.0.8-rc1 | |
env: | |
GH_TOKEN: "${{ secrets.GH_PAT }}" | |
SEALOS_TYPE: "issue_renew" | |
SEALOS_ISSUE_TITLE: "[DaylyReport] Auto build for sealos" | |
SEALOS_ISSUE_BODYFILE: "scripts/ISSUE_RENEW.md" | |
SEALOS_ISSUE_LABEL: "dayly-report" | |
SEALOS_ISSUE_TYPE: "day" | |
SEALOS_ISSUE_REPO: "labring-actions/cluster-image" | |
SEALOS_COMMENT_BODY: "/imagebuild_apps sealos ${{steps.get-current-tag.outputs.tag }}" | |
changelog: | |
runs-on: ubuntu-20.04 | |
needs: | |
- goreleaser | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Fetch Current version | |
id: get-current-tag | |
uses: actions-ecosystem/[email protected] | |
- run: git fetch --prune --prune-tags | |
- run: git tag -l 'v*' | |
- name: Generator changelog | |
run: ./scripts/changelog.sh ${{ github.repository }} | |
- uses: peter-evans/create-pull-request@v5 | |
with: | |
title: 'docs: Automated Changelog Update for ${{steps.get-current-tag.outputs.tag }}' | |
body: | | |
copilot:all | |
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action | |
commit-message: | | |
🤖 add release changelog using rebot. | |
branch: changelog-${{steps.get-current-tag.outputs.tag }} | |
base: main | |
signoff: true | |
delete-branch: true | |
token: ${{ secrets.GH_RELEASE_PAT }} | |
reviewers: cuisongliu | |
committer: sealos-release-robot <[email protected]> | |
author: sealos-release-robot <[email protected]> |