Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
Release vue dist folder as a zip file
  • Loading branch information
getwithashish authored Aug 16, 2023
1 parent fc339ae commit db0dcc7
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,7 @@ on:
jobs:

build:
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup JDK 17
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: temurin

- name: Move files from Spring root folder to working directory
run: mv $GITHUB_WORKSPACE/Tithe-Spring/* $GITHUB_WORKSPACE/

- name: Make gradlew executable
run: chmod +x ./gradlew

- name: Build with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: build
uses: ./.github/workflows/build.yml

release:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -62,7 +39,29 @@ jobs:
with:
arguments: build

- name: Release Asset
- name: Release Spring Asset as jar
uses: softprops/action-gh-release@v1
with:
files: ./build/libs/*.jar

- name: Setup Node.js 16
uses: actions/setup-node@v3
with:
node-version: "16"

- name: Move files from Vue root folder to working directory
run: mv $GITHUB_WORKSPACE/Tithe-Vue/* $GITHUB_WORKSPACE/

- name: Install dependencies
run: npm install

- name: Build with Vite
run: npm run build

- name: Zip the generated dist directory
run: zip -r tithe-vue.zip dist

- name: Release Vue Asset as zip
uses: softprops/action-gh-release@v1
with:
files: ./tithe-vue.zip

0 comments on commit db0dcc7

Please sign in to comment.