fix: install drawio packet, specify drawio source dir #16
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: Create and publish a Docker image | |
on: | |
push: | |
# tags: | |
# - v* | |
env: | |
OUTPUT_FILE: "src/${{ github.event.repository.name }}-${{ github.ref_name }}.pdf" | |
jobs: | |
build-and-release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: write | |
deployments: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Compile drawio files | |
run: | | |
snap install drawio | |
bash compiler/drawio.sh --dir . | |
- name: Build LaTeX project | |
run: | | |
python compile.py | |
mv src/report.pdf ${{ env.OUTPUT_FILE }} | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: false | |
prerelease: false | |
- name: Upload artifacts | |
id: upload-release-asset | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
${{ env.OUTPUT_FILE }} |