Update git repository address to point to ankorstore fork #30
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: Test & Release CLI Version for Ankorstore | |
on: | |
release: | |
types: [created] | |
push: | |
branches: | |
- main-ankorstore | |
paths: | |
- "Dockerfile" | |
- "**.go" | |
- "hack/coverage.bash" | |
- ".github/workflows/release.yaml" | |
pull_request: | |
branches: | |
- main-ankorstore | |
paths: | |
- "Dockerfile" | |
- "**.go" | |
- "hack/coverage.bash" | |
- ".github/workflows/release.yaml" | |
jobs: | |
release-ui: | |
if: startsWith(github.ref, 'refs/tags/v') == true | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 12 | |
registry-url: https://registry.npmjs.org/ | |
- id: get_version | |
run: | | |
RELEASE_VERSION=$(echo $GITHUB_REF | sed -nE 's!refs/tags/!!p') | |
echo "::set-output name=release_version::$RELEASE_VERSION" | |
- name: Cache node modules | |
uses: actions/cache@v1 | |
with: | |
path: ui/node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/ui/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Build UI | |
env: | |
VERSION: ${{ steps.get_version.outputs.release_version }} | |
NPM_CONFIG_GLOBALCONFIG: "dist/npm/config/npmrc" | |
NPM_REGISTRY_TOKEN: ${{ secrets.JF_NPM_TOKEN }} | |
CI: "false" | |
run: ./hack/build-ui.bash | |
- name: Upload ui tar | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ui-tar | |
path: release/ui.tar.gz | |
release: | |
if: startsWith(github.ref, 'refs/tags/v') == true | |
needs: [ release-ui ] | |
runs-on: macos-11 | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.19 | |
- id: get_version | |
run: | | |
RELEASE_VERSION=$(echo $GITHUB_REF | sed -nE 's!refs/tags/!!p') | |
echo "::set-output name=release_version::$RELEASE_VERSION" | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v1 | |
- name: Download ui tar | |
uses: actions/download-artifact@v2 | |
with: | |
name: ui-tar | |
- name: install-upx | |
run: brew install upx | |
- name: Compile binaries | |
run: ./hack/build-all-ankorstore.bash | |
env: | |
VERSION: ${{ steps.get_version.outputs.release_version }} | |
GOPATH: /Users/runner/work/devspace/go | |
- name: Publish | |
uses: FabianKramm/release-asset-action@v1 | |
with: | |
pattern: "release/*" | |
github-token: ${{ secrets.GITHUB_TOKEN }} |