-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix publish target I have converted the repository from make to mage, and from azure devops pipelines to github actions. I figured as long as I was here fixing our broken build, lets just finish moving over to where we want to be. The problem with the publish target was a few things. One there was a bug in the magefiles generatePackageFeed function, where it wasn't checking the error when calling porter to generate the atom.xml file for the feed. Porter wasn't installed, and it was quietly failing. We are now using a fixed version of the magefiles repo, and installing porter into bin before attempting to publish. Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com> * Bump magefiles to v0.2.3 Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com> * Use target.Dir instead of target.Path Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
- Loading branch information
Showing
8 changed files
with
169 additions
and
129 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
name: build | ||
on: [workflow_dispatch, push, pull_request] | ||
|
||
env: | ||
# Make mage super verbose ALL THE TIME | ||
MAGEFILE_VERBOSE: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
check-latest: true | ||
- name: Configure Agent | ||
run: go run mage.go ConfigureAgent | ||
- name: Build | ||
run: mage Build | ||
- name: Test | ||
run: mage Test | ||
- name: Cross Compile | ||
run: mage XBuildAll | ||
- name: Publish | ||
if: ${{ github.event_name == 'push' }} | ||
run: mage Publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PUBLISH_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
/azure | ||
.DS_Store | ||
/build/git_askpass.sh | ||
tests/integration/testdata/.cnab |
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
This file was deleted.
Oops, something went wrong.
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
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
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