Skip to content

Commit dc37512

Browse files
committed
chore: add workflow to release nightly of the new build
1 parent abe1746 commit dc37512

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release Artifacts to Maven
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
environment:
7+
required: true
8+
type: string
9+
10+
jobs:
11+
release-maven-artifacts:
12+
runs-on: ubuntu-latest
13+
environment: ${{ inputs.environment }}
14+
steps:
15+
- uses: actions/checkout@v5
16+
- uses: actions/setup-java@v4
17+
with:
18+
distribution: 'adopt'
19+
java-version: 17
20+
cache: 'sbt'
21+
- uses: sbt/setup-sbt@v1
22+
- name: Publish Artifacts to the Maven Repository
23+
run : sbt scala3-bootstrapped-new/publish

.github/workflows/release-nightly.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Nightly Release of Scala 3
2+
run-name: Nightly Release of Scala 3 (${{ github.sha }})
3+
4+
on:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: '0 3 * * *' # Every day at 3 AM
8+
9+
jobs:
10+
11+
## TODO: Add the compilation pipeline here
12+
13+
## TODO: Add the test pipeline here
14+
15+
release-maven-artifacts:
16+
# TODO: Add a dependency to the test ad compilation pipeline before releasing
17+
uses: ./.github/workflows/release-maven-artifacts.yml
18+
with:
19+
environment: release-nightly

0 commit comments

Comments
 (0)