Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
chore: update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jef committed Feb 26, 2021
1 parent 56f58f0 commit 49d2a7d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
name: ci
name: Continuous Integration
on:
pull_request:
branches: [master]
branches:
- main
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [11]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
java-version: '11'
- uses: actions/cache@v2
with:
path: ~/.gradle/caches
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/cd.yaml → .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
name: cd
name: Release
on:
push:
branches: [master]
branches:
- main
jobs:
cd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: GoogleCloudPlatform/[email protected]
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup release please
uses: google-github-actions/release-please-action@v2
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: simple
package-name: forest-night
changelog-path: CHANGELOG.md
package-name: forest-night-jetbrains
# The logic below handles JetBrains publication:
- uses: actions/checkout@v2
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-java@v1
if: ${{ steps.release.outputs.release_created }}
with:
Expand Down

0 comments on commit 49d2a7d

Please sign in to comment.