Skip to content

fix: install drawio packet, specify drawio source dir #16

fix: install drawio packet, specify drawio source dir

fix: install drawio packet, specify drawio source dir #16

Workflow file for this run

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 }}