Release #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
workflow_run: | |
workflows: ["Test"] | |
branches: [main] | |
types: | |
- completed | |
jobs: | |
release: | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install micropython dependencies | |
run: | | |
git clone https://github.com/pyenv/pyenv.git ~/.pyenv | |
export PYENV_ROOT="$HOME/.pyenv" | |
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" | |
eval "$(pyenv init -)" | |
pyenv install micropython-1.19.1 | |
pyenv local micropython-1.19.1 | |
make dist | |
- name: Archive Release | |
uses: thedoctor0/zip-release@main | |
with: | |
type: 'zip' | |
directory: 'dist/' | |
filename: 'release.zip' | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 'lts/*' | |
- name: Install dependencies | |
run: | | |
npm install @semantic-release/commit-analyzer \ | |
@semantic-release/release-notes-generator \ | |
@semantic-release/github \ | |
semantic-release | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: npx semantic-release -e ./.github/.releaserc.json |