Skip to content

Merge remote-tracking branch 'origin/develop' #13

Merge remote-tracking branch 'origin/develop'

Merge remote-tracking branch 'origin/develop' #13

Workflow file for this run

---
name: Publish
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
tags: [ "v*" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
publish:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Publish dev Task
run: task publish-dev
if: github.ref == 'refs/heads/master'
env:
TWINE_PASSWORD: "${{ secrets.TWINE_PASSWORD_DEV }}"
- name: Run Publish prod Task
run: task publish-prod
if: startsWith(github.ref, 'refs/tags/v')
env:
TWINE_PASSWORD: "${{ secrets.TWINE_PASSWORD_PROD }}"