Skip to content

Release 1.0.0

Release 1.0.0 #3

Workflow file for this run

name: Release Creation
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Substitute Manifest and Download Links For Versioned Ones
id: sub_manifest_link_version
uses: cschleiden/replace-tokens@v1
with:
files: 'module.json'
env:
VERSION: ${{github.event.release.tag_name}}
URL: https://github.com/${{github.repository}}
MANIFEST: https://github.com/${{github.repository}}/releases/latest/download/module.json
DOWNLOAD: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip
# Create a zip file to add to the release
- name: Create Zip Archive
run: zip -r ./module.zip module.json README.md LICENSE lang/ modules/ styles/ templates/
# Update the GitHub release
- name: Update Release
id: create_version_release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
name: ${{ github.event.release.name }}
draft: ${{ github.event.release.unpublished }}
prerelease: ${{ github.event.release.prerelease }}
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: './module.json, ./module.zip'
tag: ${{ github.event.release.tag_name }}
body: ${{ github.event.release.body }}