Skip to content

Commit cf35ebb

Browse files
committed
upgrade actions
1 parent a5095db commit cf35ebb

File tree

7 files changed

+82
-387
lines changed

7 files changed

+82
-387
lines changed

.github/workflows/buildAndPublishPackage.yaml

-114
This file was deleted.

.github/workflows/pages.yaml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish documentation to Github Pages
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main]
7+
paths:
8+
- '*.md'
9+
10+
permissions:
11+
id-token: write # This is required for requesting the JWT
12+
contents: write # This is required for actions/checkout
13+
pages: write # to deploy to Pages
14+
15+
jobs:
16+
PublishGithubPages:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- id: release
20+
name: Create and upload new Github Pages content
21+
uses: encalmo/[email protected]
22+
with:
23+
tag-prefix: 'version'
24+
version-bump: 'keep'
25+
release-flags: ''
26+
github-token: ${{ secrets.GITHUB_TOKEN }}
27+
sonatype-token: ${{ secrets.SONATYPE_TOKEN }}
28+
gpg-secret-key-base64: ${{ secrets.GPG_SECRET_KEY }}
29+
gpg-secret-key-id: ${{ secrets.GPG_SECRET_KEY_ID }}
30+
pages-only: 'true'
31+
markdown-paths: 'README.md'
32+

.github/workflows/release.yaml

+22-13
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,31 @@ on:
1313
- minor
1414
- patch
1515
- keep
16-
pages-only:
17-
type: boolean
18-
description: 'Skip release, generate only Github Pages'
19-
required: true
20-
default: false
21-
2216
# push:
2317
# branches: [main]
2418
# paths:
25-
# - '*.scala'
19+
# - '*.scala'
20+
21+
permissions:
22+
id-token: write # This is required for requesting the JWT
23+
contents: write # This is required for actions/checkout
24+
pages: write # to deploy to Pages
2625

2726
jobs:
2827
ReleasePackage:
29-
uses: ./.github/workflows/buildAndPublishPackage.yaml
30-
secrets: inherit
31-
with:
32-
tag-prefix: 'lambda-utils'
33-
version-bump: ${{ inputs.version-bump || 'patch' }}
34-
pages-only: ${{ inputs.pages-only }}
28+
runs-on: ubuntu-latest
29+
steps:
30+
- id: release
31+
name: Create and upload new release bundles
32+
uses: encalmo/[email protected]
33+
with:
34+
tag-prefix: 'version'
35+
version-bump: ${{ inputs.version-bump || 'patch' }}
36+
release-flags: '--native'
37+
github-token: ${{ secrets.GITHUB_TOKEN }}
38+
sonatype-token: ${{ secrets.SONATYPE_TOKEN }}
39+
gpg-secret-key-base64: ${{ secrets.GPG_SECRET_KEY }}
40+
gpg-secret-key-id: ${{ secrets.GPG_SECRET_KEY_ID }}
41+
pages-only: 'false'
42+
markdown-paths: 'README.md'
43+

.github/workflows/test.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
7+
permissions:
8+
id-token: write # This is required for requesting the JWT
9+
contents: write # This is required for actions/checkout
10+
11+
jobs:
12+
runTests:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- uses: coursier/cache-action@v6
19+
- uses: VirtusLab/scala-cli-setup@main
20+
with:
21+
jvm: adoptium:1.21
22+
apps: scala
23+
power: true
24+
- name: Run tests
25+
run: scala test .
26+
27+

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![Maven Central Version](https://img.shields.io/maven-central/v/org.encalmo/scala-aws-lambda-utils_3?style=for-the-badge) <a href="https://encalmo.github.io/scala-aws-lambda-utils/scaladoc/org/encalmo/lambda.html" target="_blank"><img alt="Scaladoc" src="https://img.shields.io/badge/docs-scaladoc-red?style=for-the-badge"></a>
1+
<a href="https://central.sonatype.com/artifact/org.encalmo/scala-aws-lambda-utils_3" target="_blank">![Maven Central Version](https://img.shields.io/maven-central/v/org.encalmo/scala-aws-lambda-utils_3?style=for-the-badge)</a> <a href="https://encalmo.github.io/scala-aws-lambda-utils/scaladoc/org/encalmo/lambda.html" target="_blank"><img alt="Scaladoc" src="https://img.shields.io/badge/docs-scaladoc-red?style=for-the-badge"></a>
22

33

44

scripts/computeNewVersion.sc

-110
This file was deleted.

0 commit comments

Comments
 (0)