From f3db0e478590bd74f97460709c7fe657f2641c90 Mon Sep 17 00:00:00 2001 From: Damillora Date: Mon, 24 Feb 2025 19:41:40 +0000 Subject: [PATCH] chore [skip ci]: update workflow and release workflow a bit --- .github/workflows/pull-request.yml | 32 ++++++++++++++++++++++++++++ .github/workflows/release-docker.yml | 3 --- 2 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/pull-request.yml diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 0000000..a443ab3 --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,32 @@ +name: pull requests - docker image build +on: + pull_request: + branches: + - main +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + platform: [linux/amd64,linux/arm64] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - uses: actions/setup-go@v5 + with: + go-version: '1.23' + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v6 + with: + # either 'goreleaser' (default) or 'goreleaser-pro' + distribution: goreleaser + # 'latest', 'nightly', or a semver + version: "~> v2" + args: release --snapshot --clean + - name: Upload assets + uses: actions/upload-artifact@v4 + with: + name: phoebe + path: dist/* \ No newline at end of file diff --git a/.github/workflows/release-docker.yml b/.github/workflows/release-docker.yml index 30f3831..1a25430 100644 --- a/.github/workflows/release-docker.yml +++ b/.github/workflows/release-docker.yml @@ -9,9 +9,6 @@ jobs: strategy: matrix: platform: [linux/amd64,linux/arm64] - env: - IS_LINUX: ${{ startsWith(matrix.platform, 'linux/') && 'true' || 'false' }} - GIT_TAG: ${{ needs.git-version.outputs.git_tag }} steps: - name: Set up QEMU