Skip to content

bump version to 1.4.0 (from 1.3.16) #38

bump version to 1.4.0 (from 1.3.16)

bump version to 1.4.0 (from 1.3.16) #38

Workflow file for this run

name: Deploy site to GitHub Pages dependencies preinstalled
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
tags:
- "V[0-9]+.[0-9]+.[0-9]+"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Install python requirements for web-interface
run: pip install -r web-interface/requirements.txt
- name: Install python requirements for i2c-stick-arduino
run: pip install -r i2c-stick-arduino/requirements.txt
- name: Build all distribution
run: doit dist
- name: Kitchen
run: |
cp -vrf dist i2c-stick-${{ github.ref_name }}
zip -r i2c-stick-${{ github.ref_name }}.zip i2c-stick-${{ github.ref_name }}
- name: Publish to release tag
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
readme.md
i2c-stick-${{ github.ref_name }}.zip
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: dist/
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1