Skip to content

Use ghq to fetch vcs #1

Use ghq to fetch vcs

Use ghq to fetch vcs #1

Workflow file for this run

name: xgo
concurrency:
group: xgo-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- 'master'
tags:
- 'v*'
paths-ignore:
- '**.md'
pull_request:
branches:
- 'master'
paths-ignore:
- '**.md'
env:
DESTDIR: ./bin
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build artifacts
uses: docker/bake-action@v4
with:
targets: artifact-all
provenance: false
-
name: Release
uses: docker/bake-action@v4
with:
targets: release
provenance: false
-
name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: xgo
path: ${{ env.DESTDIR }}/release/*
if-no-files-found: error
-
name: GitHub Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
draft: true
files: |
${{ env.DESTDIR }}/release/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}