Skip to content

Commit

Permalink
Fix auto-release process
Browse files Browse the repository at this point in the history
  • Loading branch information
undera committed Jun 13, 2022
1 parent 27ae3f0 commit 1ba4c29
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 21 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/go.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go
name: Automated checks

on:
push:
Expand Down Expand Up @@ -33,5 +33,9 @@ jobs:
- name: Upload coverage report
uses: codecov/codecov-action@v1.0.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt
flags: unittests

- name: Build the Docker image
run: docker build . --file Dockerfile --tag encarne:$(date +%s)
18 changes: 0 additions & 18 deletions .github/workflows/docker-image.yml

This file was deleted.

21 changes: 19 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ jobs:
replace: ${{ github.ref_name }}
include: "taurus/setup.py"

- name: Install deps
run: pip install build twine

- name: Build package
run: cd taurus && python -m build && twine check dist/*

Expand All @@ -88,13 +91,27 @@ jobs:
password: ${{ secrets.PYPI_API_TOKEN }}

docker:
name: Generate cross-platform builds
name: Docker Image
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3.0.2

- name: Inject version
- name: Inject version 1
uses: jacobtomlinson/gha-find-replace@v2
with:
find: '"0.0"'
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 }}
include: "taurus/setup.py"

- name: Inject version 3
uses: jacobtomlinson/gha-find-replace@v2
with:
find: '0.0'
Expand Down

0 comments on commit 1ba4c29

Please sign in to comment.