Skip to content

Frontend perf (#3225) #5

Frontend perf (#3225)

Frontend perf (#3225) #5

Workflow file for this run

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: Build sealos image
if: ${{ github.repository_owner == env.DEFAULT_OWNER }}
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: 251
repository: labring-actions/cluster-image
body: |
/imagebuild_apps sealos ${{steps.get-current-tag.outputs.tag }}
token: "${{ secrets.GH_PAT }}"
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