Skip to content

search for webapp

search for webapp #28

Workflow file for this run

name: Build and Release webotp.html
on:
push:
branches:
- master
paths-ignore:
- '.github/**'
- 'README.md'
- 'build.py'
workflow_dispatch:
jobs:
build_release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: pip install beautifulsoup4
- name: Get commit info
run: |
echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
COMMIT_SUMMARY=$(git log -1 --pretty=%s)
COMMIT_BODY=$(git log -1 --pretty=%b | tr '\n' ' ' | tr -s ' ')
echo "COMMIT_SUMMARY=$COMMIT_SUMMARY" >> $GITHUB_ENV
echo "COMMIT_BODY=$COMMIT_BODY" >> $GITHUB_ENV
- name: Build webotp.html
run: python build.py
- name: Create GitHub Release
uses: ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b
with:
tag: ${{ env.SHORT_SHA }}
name: "Release ${{ env.SHORT_SHA }} - ${{ env.COMMIT_SUMMARY }}"
body: ${{ env.COMMIT_BODY != '' && env.COMMIT_BODY || env.COMMIT_SUMMARY }}
draft: false
prerelease: false
artifacts: webotp.html
generateReleaseNotes: true
makeLatest: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}