40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
name: 🚀 Pack skyscraper8
|
|
run-name: 👷 ${{ gitea.actor }} is building skyscraper8
|
|
on: [push]
|
|
|
|
jobs:
|
|
make-zip:
|
|
runs-on: self-hosted
|
|
steps:
|
|
- name: 📥 Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: 🛠️ Building the main assembly...
|
|
working-directory: ${{ gitea.workspace }}
|
|
run: |
|
|
dotnet build /p:EnableWindowsTargeting=true
|
|
|
|
- name: 📄 Typesetting the readme file...
|
|
working-directory: ${{ gitea.workspace }}/skyscraper8.Manual
|
|
run: |
|
|
pdflatex skyscraper8.Manual.tex
|
|
|
|
- name: 📦 Packing the main assembly...
|
|
working-directory: ${{ gitea.workspace }}/skyscraper8/bin/Debug/net8.0
|
|
run: |
|
|
7zz a ${{ gitea.workspace }}/skyscraper8-${{ gitea.sha }}.zip *
|
|
|
|
- name: 📚 Packing the manual...
|
|
working-directory: ${{ gitea.workspace }}/skyscraper8.Manual
|
|
run: |
|
|
7zz a ${{ gitea.workspace }}/skyscraper8-${{ gitea.sha }}.zip skyscraper8.Manual.pdf
|
|
|
|
- name: ☁️ Uploading the Package...
|
|
uses: akkuman/gitea-release-action@v1
|
|
with:
|
|
name: ${{ gitea.sha }}
|
|
md5sum: false
|
|
sha256sum: false
|
|
tag_name: release_tag
|
|
files: |-
|
|
${{ gitea.workspace }}/skyscraper8-${{ gitea.sha }}.zip |