Skip to content

Commit 42cb0e4

Browse files
committed
More workflow changes.
1 parent 8bf78f0 commit 42cb0e4

File tree

7 files changed

+97
-66
lines changed

7 files changed

+97
-66
lines changed

.github/workflows/announce-a-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
with:
2727
entrypoint: publish-release-notes-to-github
2828
env:
29-
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
29+
RELEASE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030
# - name: Zulip
3131
# uses: docker://ghcr.io/ponylang/release-bot-action:0.6.3
3232
# with:

.github/workflows/main.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/pr.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ concurrency:
66
group: pr-${{ github.ref }}
77
cancel-in-progress: true
88

9+
permissions:
10+
packages: read
11+
912
jobs:
1013
superlinter:
1114
name: Lint bash, docker, markdown, and yaml
@@ -22,22 +25,6 @@ jobs:
2225
VALIDATE_MD: true
2326
VALIDATE_YAML: true
2427

25-
# lint-python-commands:
26-
# name: Lint python commands
27-
# runs-on: ubuntu-latest
28-
# steps:
29-
# - uses: actions/checkout@v4.1.1
30-
# - name: pylint
31-
# run: make pylint
32-
33-
# validate-docker-image-builds:
34-
# name: Validate Docker image builds
35-
# runs-on: ubuntu-latest
36-
# steps:
37-
# - uses: actions/checkout@v4.1.1
38-
# - name: Docker build
39-
# run: "docker build --pull ."
40-
4128
verify-changelog:
4229
name: Verify CHANGELOG is valid
4330
runs-on: ubuntu-latest
@@ -47,3 +34,20 @@ jobs:
4734
uses: docker://ghcr.io/ponylang/changelog-tool:release
4835
with:
4936
args: changelog-tool verify
37+
38+
test-static:
39+
name: Test Alpine Static Generation
40+
runs-on: ubuntu-latest
41+
container:
42+
image: ghcr.io/redvers/pony-dependency-builder:latest
43+
steps:
44+
- name: Checkout
45+
uses: actions/checkout@v5
46+
- name: Build
47+
run: echo ${{ github.sha }} > Release.txt
48+
- name: Test
49+
run: cat Release.txt
50+
- name: alpine specific
51+
run: echo 'use "lib:lzma"' > alpine.pony
52+
- name: build-binary
53+
run: make static

.github/workflows/prepare-for-a-release.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77

88
concurrency: prepare-for-a-release
99

10+
permissions:
11+
packages: read
12+
contents: write
13+
1014
jobs:
1115
# all tasks that need to be done before we add an X.Y.Z tag
1216
# should be done as a step in the pre-tagging job.
@@ -49,14 +53,6 @@ jobs:
4953
env:
5054
GIT_USER_NAME: "redvers"
5155
GIT_USER_EMAIL: "red@contact.red"
52-
# - name: Switch to using prebuilt docker image to run
53-
# uses: docker://ghcr.io/ponylang/release-bot-action:0.6.3
54-
# with:
55-
# entrypoint: update-action-to-use-docker-image-to-run-action
56-
# env:
57-
# GIT_USER_NAME: "redvers"
58-
# GIT_USER_EMAIL: "red@contact.red"
59-
# REGISTRY: "ghcr.io"
6056

6157
# tag for release
6258
# this will kick off the next stage of the release process
@@ -104,10 +100,3 @@ jobs:
104100
env:
105101
GIT_USER_NAME: "redvers"
106102
GIT_USER_EMAIL: "red@contact.red"
107-
# - name: Switch to building action for each run
108-
# uses: docker://ghcr.io/ponylang/release-bot-action:0.6.3
109-
# with:
110-
# entrypoint: update-action-to-use-dockerfile-to-run-action
111-
# env:
112-
# GIT_USER_NAME: "redvers"
113-
# GIT_USER_EMAIL: "red@contact.red"

.github/workflows/release.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '[0-9]+.[0-9]+.[0-9]+'
7+
8+
concurrency: release
9+
10+
permissions:
11+
contents: read
12+
id-token: write
13+
packages: read
14+
15+
jobs:
16+
pre-artefact-creation:
17+
name: Tasks to run before artefact creation
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout main
21+
uses: actions/checkout@v4.1.1
22+
with:
23+
ref: "main"
24+
token: ${{ secrets.RELEASE_TOKEN }}
25+
- name: Validate CHANGELOG
26+
uses: docker://ghcr.io/ponylang/release-bot-action:0.6.3
27+
with:
28+
entrypoint: pre-artefact-changelog-check
29+
30+
build:
31+
runs-on: ubuntu-latest
32+
container:
33+
image: ghcr.io/redvers/pony-dependency-builder:latest
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@v5
37+
- name: Build
38+
run: echo ${{ github.sha }} > Release.txt
39+
- name: Test
40+
run: cat Release.txt
41+
- name: alpine specific
42+
run: echo 'use "lib:lzma"' > alpine.pony
43+
- name: build-binary
44+
run: make static
45+
- name: Release
46+
uses: softprops/action-gh-release@v2
47+
if: github.ref_type == 'tag'
48+
with:
49+
files: |
50+
jndi-file-scanner
51+
Release.txt
52+
53+
trigger-release-announcement:
54+
name: Trigger release announcement
55+
runs-on: ubuntu-latest
56+
needs:
57+
- build
58+
steps:
59+
- uses: actions/checkout@v4.1.1
60+
with:
61+
ref: "main"
62+
token: ${{ secrets.RELEASE_TOKEN }}
63+
- name: Trigger
64+
uses: docker://ghcr.io/ponylang/release-bot-action:0.6.3
65+
with:
66+
entrypoint: trigger-release-announcement
67+
env:
68+
GIT_USER_NAME: "redvers"
69+
GIT_USER_EMAIL: "red@contact.red"

.release-notes/0.1.3.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Added Static Builds by Github Workflows
2+
3+
Github workflows now generate a static binary which should be usable on any Linux distribution.

.release-notes/next-release.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
## Workflow Updates for Releases
22

33
Many many release iterations to get the changelog-bot rotating appropriately.
4-
## Added Static Builds by Github Workflows
5-
6-
Github workflows now generate a static binary which should be usable on any Linux distribution.
7-

0 commit comments

Comments
 (0)