Skip to content

Commit

Permalink
Bunch of improvements (#14)
Browse files Browse the repository at this point in the history
* Fix rename job

* Fix replacing

* Fix replacing

Co-authored-by: Oles Pisarenko <oles.pisarenko@olx.com>
  • Loading branch information
Oles Pisarenko and Oles Pisarenko committed Jul 25, 2022
1 parent b059a7a commit 6e283be
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
include: "cmd/encarno/main.go"

- name: Generate build files
uses: crazy-max/ghaction-xgo@v2.0.0
uses: crazy-max/ghaction-xgo@v2.1.0
with:
xgo_version: latest
xgo_version: v0.19.0
go_version: 1.18
dest: build
pkg: "cmd/encarno"
Expand All @@ -39,11 +39,6 @@ jobs:
buildmode: default
buildvcs: false
tags: ""
- name: Simplifying artifacts # Step to reduce a platform' substring overhead e.g darwin-10.16-amd64, windows-4.0-amd64.exe
run: |
mv build/${{ github.event.repository.name }}-darwin-*-amd64 build/${{ github.event.repository.name }}-darwin-amd64
mv build/${{ github.event.repository.name }}-darwin-*-arm64 build/${{ github.event.repository.name }}-darwin-arm64
mv build/${{ github.event.repository.name }}-windows-*-amd64.exe build/${{ github.event.repository.name }}-windows-amd64.exe
- name: Release artifacts
uses: ncipollo/release-action@v1.10.0
with:
Expand All @@ -67,14 +62,14 @@ jobs:
uses: jacobtomlinson/gha-find-replace@v2
with:
find: '"0.0"'
replace: ${{ github.ref_name }}
replace: '"${{ github.ref_name }}"'
include: "taurus/encarno/__init__.py"

- name: Inject version 2
uses: jacobtomlinson/gha-find-replace@v2
with:
find: '"0.0"'
replace: ${{ github.ref_name }}
replace: '"${{ github.ref_name }}"'
include: "taurus/setup.py"

- name: Install deps
Expand All @@ -101,14 +96,14 @@ jobs:
uses: jacobtomlinson/gha-find-replace@v2
with:
find: '"0.0"'
replace: ${{ github.ref_name }}
replace: '"${{ github.ref_name }}"'
include: "taurus/encarno/__init__.py"

- name: Inject version 2
uses: jacobtomlinson/gha-find-replace@v2
with:
find: '"0.0"'
replace: ${{ github.ref_name }}
replace: '"${{ github.ref_name }}"'
include: "taurus/setup.py"

- name: Inject version 3
Expand Down

0 comments on commit 6e283be

Please sign in to comment.