updated github actions
parent
6cbca99d1d
commit
98992c5855
|
@ -4,8 +4,8 @@ name: "debug"
|
|||
|
||||
## Controls when the workflow will run
|
||||
on:
|
||||
push:
|
||||
branches: [ github-action ]
|
||||
# push:
|
||||
# branches: [ github-action ]
|
||||
|
||||
## Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
@ -41,19 +41,19 @@ jobs:
|
|||
# # old TeX Live version: 2019
|
||||
# uses: DanySK/setup-texlive-action@master
|
||||
# with:
|
||||
# requirements-file: .github/tex/test.packages.txt
|
||||
# requirements-file: .github/tex/packages.test.txt
|
||||
# ##
|
||||
# - name: "setup TeX Live (via teatimeguest)"
|
||||
# # tlmgr needs updates and fails
|
||||
# uses: teatimeguest/setup-texlive-action@v1
|
||||
# with:
|
||||
# package-file: .github/tex/test.packages.txt
|
||||
# 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/minimal.profile.txt
|
||||
packages-path: ${{ github.workspace }}/.github/tex/test.packages.txt
|
||||
profile-path: ${{ github.workspace }}/.github/tex/texlive.profile.txt
|
||||
packages-path: ${{ github.workspace }}/.github/tex/packages.test.txt
|
||||
|
||||
- name: "install tikz-trackschematic"
|
||||
run: chmod +x dev-install.sh && ./dev-install.sh -b
|
||||
|
@ -61,16 +61,16 @@ jobs:
|
|||
- name: "test tikz-trackschematic"
|
||||
run: cd test && chmod +x testing.sh && ./testing.sh && cd ..
|
||||
|
||||
## 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
|
||||
# ## 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: chmod +x create-release.sh ./create-release.sh -v ${{ steps.tag.outputs.tag }}
|
||||
# - name: "create tikz-trackschematic package"
|
||||
# run: chmod +x create-release.sh && ./create-release.sh -v ${{ steps.tag.outputs.tag }}
|
||||
|
||||
# ## opening a debug console
|
||||
# - name: Setup upterm session
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
# github action to publish a release
|
||||
#
|
||||
name: "release"
|
||||
### github action to make and publish a release
|
||||
##
|
||||
name: release
|
||||
|
||||
# Controls when the workflow will run
|
||||
## Controls when the workflow will run
|
||||
on:
|
||||
# Triggers the workflow on push or pull request events but only for the master branch
|
||||
## Triggers the workflow on push or pull request events but only for the master branch
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
## A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -18,10 +18,16 @@ jobs:
|
|||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
uses: actions/checkout@v2
|
||||
|
||||
## 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"
|
||||
env:
|
||||
TAG_NAME: ${{ contains(github.event.head_commit.message, '[commit var]') }}
|
||||
run: chmod +x create-release.sh && ./create-release.sh -v ${TAG_NAME}
|
||||
run: chmod +x create-release.sh && ./create-release.sh -v ${{ steps.tag.outputs.tag }}
|
||||
|
||||
- name: "create release"
|
||||
id: create_release
|
||||
|
@ -31,10 +37,7 @@ jobs:
|
|||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: Release ${{ github.ref }}
|
||||
body: |
|
||||
Changes in this Release
|
||||
- First Change
|
||||
- Second Change
|
||||
body: "release information"
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
|
@ -44,8 +47,8 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: tikz-trackschematic-${TAG_NAME}.zip
|
||||
asset_name: tikz-trackschematic-${TAG_NAME}.zip
|
||||
asset_path: tikz-trackschematic-${{ steps.tag.outputs.tag }}.zip
|
||||
asset_name: tikz-trackschematic-${{ steps.tag.outputs.tag }}.zip
|
||||
asset_content_type: application/zip
|
||||
|
||||
- name: "publish release"
|
||||
|
|
Loading…
Reference in New Issue