mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-25 23:42:23 +00:00
.github: update deprecated workflows
This commit is contained in:
parent
b930a970ce
commit
59741bbffc
2 changed files with 7 additions and 7 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -70,7 +70,7 @@ jobs:
|
||||||
run: mv ./bin/neo-go* ./bin/neo-go-${{ matrix.os.bin-name }}-${{ matrix.arch }}${{ (matrix.os.bin-name == 'windows' && '.exe') || '' }}
|
run: mv ./bin/neo-go* ./bin/neo-go-${{ matrix.os.bin-name }}-${{ matrix.arch }}${{ (matrix.os.bin-name == 'windows' && '.exe') || '' }}
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: neo-go-${{ matrix.os.bin-name }}-${{ matrix.arch }}
|
name: neo-go-${{ matrix.os.bin-name }}-${{ matrix.arch }}
|
||||||
path: ./bin/neo-go*
|
path: ./bin/neo-go*
|
||||||
|
@ -102,12 +102,12 @@ jobs:
|
||||||
|
|
||||||
- name: Set vars
|
- name: Set vars
|
||||||
id: setvars
|
id: setvars
|
||||||
run: make gh-docker-vars
|
run: make gh-docker-vars >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Set latest tag
|
- name: Set latest tag
|
||||||
id: setlatest
|
id: setlatest
|
||||||
if: ${{ (github.event_name == 'release' && github.event.release.target_commitish == 'master') || (github.event_name == 'workflow_dispatch' && github.event.inputs.push_image == 'true' && github.event.inputs.use_latest_tag == 'true') }}
|
if: ${{ (github.event_name == 'release' && github.event.release.target_commitish == 'master') || (github.event_name == 'workflow_dispatch' && github.event.inputs.push_image == 'true' && github.event.inputs.use_latest_tag == 'true') }}
|
||||||
run: echo "::set-output name=latest::,${{ steps.setvars.outputs.repo }}:latest"
|
run: echo "latest=,${{ steps.setvars.outputs.repo }}:latest" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
|
|
8
Makefile
8
Makefile
|
@ -96,10 +96,10 @@ version:
|
||||||
@echo $(VERSION)
|
@echo $(VERSION)
|
||||||
|
|
||||||
gh-docker-vars:
|
gh-docker-vars:
|
||||||
@echo "::set-output name=file::$(D_FILE)"
|
@echo "file=$(D_FILE)"
|
||||||
@echo "::set-output name=version::$(VERSION)"
|
@echo "version=$(VERSION)"
|
||||||
@echo "::set-output name=repo::$(IMAGE_REPO)"
|
@echo "repo=$(IMAGE_REPO)"
|
||||||
@echo "::set-output name=suffix::$(IMAGE_SUFFIX)"
|
@echo "suffix=$(IMAGE_SUFFIX)"
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@go test ./... -cover
|
@go test ./... -cover
|
||||||
|
|
Loading…
Reference in a new issue