Skip to content

0.1.0-rc.3

0.1.0-rc.3 #15

Workflow file for this run

name: CICD
on:
push:
jobs:
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/next' || github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.TOKEN }}
- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release@master
id: semantic-release
with:
github_token: ${{ secrets.TOKEN }}
- name: Build
run: |
python3 -m pip install --upgrade build
python3 -m build
- name: Upload PYPI
if: steps.semantic-release.outputs.released == 'true'
run: |
python3 -m pip install twine
python3 -m twine upload --repository pypi dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }}
- name: Merge master -> next
if: github.ref == 'refs/heads/master'
uses: devmasx/merge-branch@master
with:
type: now
from_branch: master
target_branch: next
github_token: ${{ github.token }}
docker-build-squash-push:
uses: Geode-solutions/actions/.github/workflows/docker-build-squash-push.yml@master
if: github.ref == 'refs/heads/next' || github.ref == 'refs/heads/master'
with:
image_name: 'geodeapp-viewer'
tag: ${{ github.ref_name }}
secrets:
TOKEN: ${{secrets.GITHUB_TOKEN}}