Skip to content

Commit 2ea8ad4

Browse files
authored
Create create-release.yml
1 parent edb0933 commit 2ea8ad4

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/create-release.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This is a basic workflow that is manually triggered
2+
3+
name: Create Release
4+
5+
# Controls when the action will run. Workflow runs when manually triggered using the UI
6+
# or API.
7+
on: [push]
8+
9+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
10+
jobs:
11+
create_release:
12+
# The type of runner that the job will run on
13+
runs-on: ubuntu-latest
14+
env:
15+
GH_TOKEN: ${{ github.token }}
16+
RELEASE: ${{ github.event.inputs.release || github.ref_name }}
17+
18+
# Steps represent a sequence of tasks that will be executed as part of the job
19+
steps:
20+
- name: Checkout
21+
uses: actions/[email protected]
22+
with:
23+
ref: gh-pages
24+
25+
- name: Zip Release
26+
uses: TheDoctor0/[email protected]
27+
with:
28+
filename: ui-grid-${{ env.RELEASE }}.zip
29+
path: ./release/${{ env.RELEASE }}/*
30+
31+
- name: Publish Release
32+
run: gh release create v${{ env.RELEASE }} ./ui-grid-${{ env.RELEASE }}.zip
33+

0 commit comments

Comments
 (0)