Skip to content

Commit fb65fb2

Browse files
committed
CI test
1 parent aac9034 commit fb65fb2

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7+
8+
name: Deploy Pages
9+
10+
on:
11+
push:
12+
branches: [ "master" ]
13+
14+
concurrency:
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
permissions:
21+
contents: read
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Set up JDK 17
26+
uses: actions/setup-java@v4
27+
with:
28+
java-version: '17'
29+
distribution: 'temurin'
30+
31+
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
32+
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
33+
- name: Setup Gradle
34+
uses: gradle/actions/setup-gradle@v4
35+
36+
- name: Build with Gradle Wrapper
37+
run: ./gradlew wasmJsBrowserDistribution
38+
39+
- uses: actions/upload-artifact@v4
40+
name: Upload dist
41+
with:
42+
name: dist
43+
path: composeApp/build/dist/wasmJs/productionExecutable/**
44+
45+
push-dist:
46+
runs-on: ubuntu-latest
47+
permissions:
48+
contents: write
49+
steps:
50+
- uses: actions/checkout@v4
51+
with:
52+
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
53+
54+
- name: Download dist
55+
uses: actions/download-artifact@v4
56+
with:
57+
name: dist
58+
59+
- run: ls -R
60+
61+
# - name: Push changes
62+
# uses: ad-m/github-push-action@master
63+
# with:
64+
# branch: pages
65+
# force: true
66+
67+
# https://github.com/marketplace/actions/github-push
68+

0 commit comments

Comments
 (0)