Skip to content

Commit

Permalink
Create create-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
richtabor committed Jul 10, 2024
1 parent afaa856 commit 36f9daa
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Create Release

on:
push:
tags:
- '*'

permissions:
contents: write

jobs:
create-release:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20.11.0' # Specify the Node.js version you need

- name: Install dependencies
run: npm install

- name: Make theme-zip.sh executable
run: chmod +x theme-zip.sh

- name: Build theme zip
id: build_zip
run: ./create-zip.sh

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.build_zip.outputs.zip_file }}
asset_name: ${{ steps.build_zip.outputs.zip_file }}
asset_content_type: application/zip

0 comments on commit 36f9daa

Please sign in to comment.