Skip to content

Commit

Permalink
Added workflow for building skeletons
Browse files Browse the repository at this point in the history
  • Loading branch information
w00fz authored Feb 24, 2021
1 parent 8dab797 commit 2c286e4
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build-skeleton.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build Skeleton

on:
release:
types: [ published ]
workflow_dispatch:
inputs:
tag:
description: 'Target tag for re-upload'
required: true
default: ''
version:
description: 'Which Grav release to use'
required: true
default: 'latest'
admin:
description: 'Create also a package with Admin'
required: true
default: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Extract Tag
run: echo "SKELETON_VERSION=${{ github.event.inputs.tag || github.ref }}" >> $GITHUB_ENV
- name: Generate Skeleton Packages
uses: w00fz/skeleton-builder@main
with:
version: ${{ github.event.inputs.version || 'latest' }}
admin: ${{ github.event.inputs.admin || true }}
- name: Upload packages to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ env.SKELETON_VERSION }}
file: dist/*.zip
overwrite: true
file_glob: true

0 comments on commit 2c286e4

Please sign in to comment.