Convert porter/az-mixin to GitHub Actions #1
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: porter/az-mixin | |
on: | |
push: | |
branches: | |
- main | |
- v* | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4.1.0 | |
# # This item has no matching transformer | |
# - task: GoTool@0 | |
# inputs: | |
# version: 1.19.2 | |
# displayName: Install Go | |
- name: Configure Agent | |
run: go run mage.go ConfigureAgent | |
- name: Test | |
run: mage Test | |
- name: Cross Compile | |
run: mage XBuildAll | |
- name: Publish | |
if: success() && github.event_name != 'PullRequest' | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
run: mage Publish |