tikz-trackschematic/.github/workflows/debug.yml

116 lines
4.0 KiB
YAML

### github action to publish a debug
##
name: "debug"
## Controls when the workflow will run
on:
# push:
# branches: [ github-action ]
## Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
## A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
create_package:
name: "create a TeX Live package"
runs-on: ubuntu-latest
steps:
# checkout the repo
- name: "checkout"
uses: actions/checkout@v2
# create package and release notes
- name: "create tikz-trackschematic package"
run: ./build.sh --non-interactive --release v0.7.0
# upload artifact two share it with other jobs
- uses: actions/upload-artifact@v3
with:
path: tikz-trackschematic-v0.7.0.zip
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
- uses: actions/upload-artifact@v3
with:
path: release-note-v0.7.0.md
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn`
- uses: actions/upload-artifact@v3
with:
path: .github/tex/tikz-trackschematic.pkg
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn`
- uses: actions/upload-artifact@v3
with:
path: .github/zenodo/metadata.json
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn`
# This workflow contains a single job called "build"
debug:
needs: create_package
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: "checkout"
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
uses: actions/checkout@v2
# download artifact in folder artifact/
- uses: actions/download-artifact@v3
# - name: "install ghostscript"
# run: sudo apt-get install -y ghostscript
###### multiple options for a TeX environment
# ##
# - name: "setup TeX Live (via apt-get)"
# # old TeX Live version: 2019
# run: |
# sudo apt-get update -y || sudo apt-get update -y || sudo apt-get update -y
# sudo apt-get install -y texlive-latex-base || sudo apt-get install -y texlive-latex-base || sudo apt-get install -y texlive-latex-base
# ##
# - name: "setup TeX Live (via DanySK)"
# # old TeX Live version: 2019
# uses: DanySK/setup-texlive-action@master
# with:
# requirements-file: .github/tex/packages.test.txt
# ##
# - name: "setup TeX Live (via teatimeguest)"
# uses: teatimeguest/setup-texlive-action@v2
# with:
# package-file: .github/tex/packages.test.txt
# ##
# - name: "setup TeX Live (via paolobrasolin)"
# uses: paolobrasolin/setup-texlive-action@v1
# with:
# profile-path: ${{ github.workspace }}/.github/tex/profile.minimal.txt
# packages-path: ${{ github.workspace }}/.github/tex/packages.doc.txt
# - name: "install tikz-trackschematic"
# run: ./build.sh --non-interactive --install-dev
# - name: "test tikz-trackschematic"
# run: ./build.sh --non-interactive --test --verbose
# ## create varibale ${{ steps.tag.outputs.tag }}
# - name: "get tag"
# id: tag
# uses: dawidd6/action-get-tag@v1
# with:
# # Optionally strip `v` prefix
# strip_v: false
# - name: "create tikz-trackschematic package"
# run: ./build.sh --non-interactive --release ${{ steps.tag.outputs.tag }}
## opening a debug console
- name: Setup upterm session
env:
# ZENODO_ACCESS_TOKEN: ${{ secrets.ZENODO_ACCESS_TOKEN }}
ZENODO_SANDBOX_ACCESS_TOKEN: ${{ secrets.ZENODO_SANDBOX_ACCESS_TOKEN }}
uses: lhotari/action-upterm@v1
with:
limit-access-to-actor: true