Skip to content

Merge pull request #12 from netz39/dependabot/github_actions/dot-gith… #11

Merge pull request #12 from netz39/dependabot/github_actions/dot-gith…

Merge pull request #12 from netz39/dependabot/github_actions/dot-gith… #11

Workflow file for this run

name: Create Release
on:
push:
branches:
- main
tags:
- 'v*'
jobs:
build:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: Netz39/Ordnungen/.github/workflows/build.yml@main
create-release:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
needs: build
runs-on: ubuntu-latest
steps:
- name: Retrieve pdf files
uses: actions/[email protected]
with:
name: PDFs
- 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 Satzung.pdf
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Satzung.pdf
asset_name: Satzung.pdf
asset_content_type: application/pdf
- name: Upload Beitrags_und_Mahnordnung.pdf
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Beitrags_und_Mahnordnung.pdf
asset_name: Beitrags_und_Mahnordnung.pdf
asset_content_type: application/pdf
- name: Upload Geschaeftsordnung_des_Vorstands.pdf
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Geschaeftsordnung_des_Vorstands.pdf
asset_name: Geschaeftsordnung_des_Vorstands.pdf
asset_content_type: application/pdf