Skip to content

Commit

Permalink
chore: release 1.0.0-rc.1 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby committed Mar 27, 2023
1 parent e9258ae commit 3e17e53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 29 deletions.
32 changes: 4 additions & 28 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,41 +20,17 @@ jobs:
distribution: 'temurin'
cache: 'gradle'
java-version: 17
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- uses: pnpm/action-setup@v2.0.1
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/console/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Frontend Dependencies
run: |
./gradlew pnpmInstall
- name: Build with Gradle
run: |
# Set the version with tag name when releasing
version=${{ github.event.release.tag_name }}
version=${version#v}
sed -i "s/version=.*-SNAPSHOT$/version=$version/1" gradle.properties
./gradlew clean build -x test
- name: Archive plugin-starter jar
- name: Archive plugin-oauth2 jar
uses: actions/upload-artifact@v2
with:
name: plugin-starter
name: plugin-oauth2
path: |
build/libs/*.jar
retention-days: 1
Expand All @@ -64,10 +40,10 @@ jobs:
needs: build
if: github.event_name == 'release'
steps:
- name: Download plugin-starter jar
- name: Download plugin-oauth2 jar
uses: actions/download-artifact@v2
with:
name: plugin-starter
name: plugin-oauth2
path: build/libs
- name: Get Name of Artifact
id: get_artifact
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: plugin-oauth2
spec:
enabled: true
version: 1.0.0-SNAPSHOT
version: 1.0.0-rc.1
requires: ">=2.4.0"
author:
name: Halo OSS Team
Expand Down

0 comments on commit 3e17e53

Please sign in to comment.