Skip to content

Release

Release #231

Workflow file for this run

name: Release
on:
schedule:
- cron: "42 8 * * 1-5"
workflow_dispatch:
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
token: ${{ secrets.RELEASE_PAT }}
fetch-depth: 0
- name: Conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@v3
with:
github-token: ${{ secrets.RELEASE_PAT }}
skip-git-pull: "true"
pre-commit: build/pre-commit.js
release-count: 0
version-file: "package.json, package-lock.json"
- name: Set up Nextcloud env
if: ${{ steps.changelog.outputs.skipped == 'false' }}
uses: ChristophWurst/setup-nextcloud@v0.3.1
with:
php-version: '8.0'
tools: 'krankerl'
- name: Package app
if: ${{ steps.changelog.outputs.skipped == 'false' }}
run: krankerl package
- name: Create Release in releases organization
if: ${{ steps.changelog.outputs.skipped == 'false' }}
id: github-release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
files: build/artifacts/unattended_upgrades.tar.gz