mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 19:16:57 +08:00
122 lines
4.0 KiB
YAML
122 lines
4.0 KiB
YAML
name: Verification of Nightly Releases
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
Build:
|
|
name: Build something
|
|
runs-on: ubuntu-24.04
|
|
|
|
steps:
|
|
- name: 🖉 Build 1
|
|
run: |
|
|
printf "%s\n" "Document 1 $(date --utc '+%d.%m.%Y - %H:%M:%S')" > document1.txt
|
|
printf "%s\n" "Analysis log $(date --utc '+%d.%m.%Y - %H:%M:%S')" > analysis.log
|
|
printf "%s\n" "Build log $(date --utc '+%d.%m.%Y - %H:%M:%S')" > build.log
|
|
|
|
- name: 📤 Upload artifact
|
|
uses: pyTooling/upload-artifact@v4
|
|
with:
|
|
name: document
|
|
path: |
|
|
document1.txt
|
|
*.log
|
|
if-no-files-found: error
|
|
retention-days: 1
|
|
|
|
- name: 🖉 Program
|
|
run: |
|
|
printf "%s\n" "Document other $(date --utc '+%d.%m.%Y - %H:%M:%S')" > document1.txt
|
|
printf "%s\n" "Program $(date --utc '+%d.%m.%Y - %H:%M:%S')" > program.py
|
|
|
|
- name: 📤 Upload artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: other
|
|
path: |
|
|
*.txt
|
|
*.py
|
|
if-no-files-found: error
|
|
retention-days: 1
|
|
|
|
NightlyPage:
|
|
uses: ./.github/workflows/NightlyRelease.yml
|
|
needs:
|
|
- Build
|
|
permissions:
|
|
contents: write
|
|
actions: write
|
|
with:
|
|
can-fail: true
|
|
prerelease: true
|
|
replacements: |
|
|
version=4.2.0
|
|
tool=myTool
|
|
prog=program
|
|
nightly_title: "Nightly Test Release"
|
|
nightly_description: |
|
|
This *nightly* release contains all latest and important artifacts created by %tool%'s CI pipeline.
|
|
|
|
# %tool% %version%
|
|
|
|
* %prog%
|
|
assets: |
|
|
document: document1.txt: Documentation
|
|
document: build.log: Logfile - %tool% - %tool%
|
|
other: document1.txt: SBOM - %version%
|
|
other: %prog%.py: Application - %tool% - %version%
|
|
document:!archive1.zip: Archive 1 - zip
|
|
document:!archive2.tgz: Archive 2 - tgz
|
|
document:!archive3.tar.gz: Archive 3 - tar.gz
|
|
document:!archive4.tzst: Archive 4 - tzst
|
|
document:!archive5.tar.zst:Archive 5 - tar.zst
|
|
document:$archive6.tgz: Archive 6 - tgz + dir
|
|
document:$archive7.tar.gz: Archive 7 - tar.gz + dir
|
|
document:$archive8.tzst: Archive 8 - tzst + dir
|
|
document:$archive9.tar.zst:Archive 9 - tar.zst + dir
|
|
secrets: inherit
|
|
|
|
NightlyPageWithInventory:
|
|
uses: ./.github/workflows/NightlyRelease.yml
|
|
needs:
|
|
- Build
|
|
permissions:
|
|
contents: write
|
|
actions: write
|
|
with:
|
|
can-fail: true
|
|
replacements: |
|
|
version=4.2.0
|
|
tool=myTool
|
|
prog=program
|
|
nightly_name: inventory
|
|
nightly_title: "Nightly Test Release with Inventory"
|
|
nightly_description: |
|
|
This *nightly* release contains all latest and important artifacts created by %tool%'s CI pipeline.
|
|
|
|
# %tool% %version%
|
|
|
|
* %prog%
|
|
* iventory.json
|
|
inventory-json: "inventory.json"
|
|
inventory-version: 4.2.5
|
|
inventory-categories: "kind1,kind2"
|
|
assets: |
|
|
# artifact: file: labels: asset title
|
|
document: document1.txt: doc,html: Documentation
|
|
document: build.log: build,log: Logfile - %tool% - %tool%
|
|
other: document1.txt: build,SBOM:SBOM - %version%
|
|
other: %prog%.py: app,binary:Application - %tool% - %version%
|
|
document:!archive1.zip: Archive 1 - zip
|
|
document:!archive2.tgz: Archive 2 - tgz
|
|
document:!archive3.tar.gz: Archive 3 - tar.gz
|
|
document:!archive4.tzst: Archive 4 - tzst
|
|
document:!archive5.tar.zst: Archive 5 - tar.zst
|
|
document:$archive6.tgz: Archive 6 - tgz + dir
|
|
document:$archive7.tar.gz: Archive 7 - tar.gz + dir
|
|
document:$archive8.tzst: Archive 8 - tzst + dir
|
|
document:$archive9.tar.zst: Archive 9 - tar.zst + dir
|
|
secrets: inherit
|