Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
krbz999 committed Jul 25, 2023
1 parent 765bae8 commit ae0f717
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
@@ -0,0 +1,29 @@
name: Release Creation

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# Create zip file
- run: zip -r ./module.zip setup.js module.json LICENSE scripts/ lang/ styles/ templates/

# Create a release for this specific version.
- name: Update Release with Files
if: "!github.event.release.prerelease"
id: create_version_release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
name: ${{ github.event.release.name }}
draft: false
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "./module.json, ./module.zip"
tag: ${{ github.event.release.tag_name }}
body: ${{ github.event.release.body }}

0 comments on commit ae0f717

Please sign in to comment.