feat: support various chained-assignment patterns #405
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy | |
on: | |
push: | |
branches: [master, main, test*] | |
pull_request: | |
branches: [master, main] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4.4.0 | |
with: | |
distribution: zulu | |
java-version: 21 | |
- name: Cache bee local repository | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.JAVA_HOME }}/lib/bee/repository | |
key: ${{ runner.os }}-bee-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-bee | |
- name: Build artifact and site | |
run: | | |
if [ -e "bee" ]; then | |
source bee install doc:site maven:pom ci:readme ci:license | |
else | |
version=$(curl -SsL https://git.io/stable-bee) | |
curl -SsL -o bee-${version}.jar https://jitpack.io/com/github/teletha/bee/${version}/bee-${version}.jar | |
java -javaagent:bee-${version}.jar -cp bee-${version}.jar bee.Bee install doc:site maven:pom ci:readme ci:license | |
fi | |
- name: Deploy site | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: target/site | |
- name: Request Releasing | |
uses: googleapis/release-please-action@v4.1.3 | |
with: | |
release-type: simple | |
package-name: reincarnation | |
- name: Auto commit | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: update repository info | |
- name: Request building artifact in Jitpack | |
if: contains(github.event.head_commit.message, 'release-please') | |
run: | | |
URL="https://jitpack.io/com/github/teletha/reincarnation/$(cat version.txt)/build.log" | |
echo "Request building $URL" | |
sleep 5 && (curl -m 1 -s -X GET $URL > /dev/null || true) |