Skip to content

Commit 55cb9c5

Browse files
authored
Merge pull request #51 from actions/update-release
Prepare incoming release
2 parents 649f5d3 + 0c8f0ed commit 55cb9c5

File tree

5 files changed

+43
-8
lines changed

5 files changed

+43
-8
lines changed

.github/release-drafter.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ name-template: 'v$RESOLVED_VERSION'
33
tag-template: 'v$RESOLVED_VERSION'
44
template: |
55
# Changelog
6+
67
$CHANGES
7-
See details of [all code changes](https://github.com/actions/jekyll-build-pages/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION) since previous release
8+
9+
See details of [all code changes](https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION) since previous release.
810
categories:
911
- title: '🚀 Features'
1012
labels:

.github/workflows/docker-publish.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,3 @@ jobs:
6060
push: true
6161
tags: ${{ steps.generate-image-tags.outputs.tags }}
6262
labels: ${{ steps.meta.outputs.labels }}
63-
# Drafts your next Release notes as Pull Requests are merged into "main"
64-
- uses: release-drafter/release-drafter@v5
65-
if: github.ref_name == 'main'
66-
env:
67-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/draft-release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Draft release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
draft-release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: release-drafter/release-drafter@v5
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,27 @@ This is used along with [`actions/deploy-pages`](https://github.com/actions/depl
1010

1111
See [action.yml](action.yml)
1212

13-
# License
13+
# Release instructions
14+
15+
In order to release a new version of this Action:
16+
17+
1. Locate the semantic version of the [upcoming release][release-list] (a draft is maintained by the [`draft-release` workflow][draft-release]).
18+
19+
2. Prepare a pull request to update [`action.yml`][action.yml] to reference the incoming version
20+
21+
3. Publish the draft release from the `main` branch with semantic version as the tag name, _with_ the checkbox to publish to the GitHub Marketplace checked. :ballot_box_with_check:
22+
23+
4. After publishing the release, the [`release` workflow][release] will automatically run to create/update the corresponding the major version tag such as `v1`.
24+
25+
⚠️ Environment approval is required. Check the [Release workflow run list][release-workflow-runs].
26+
27+
## License
1428

1529
The scripts and documentation in this project are released under the [MIT License](LICENSE).
30+
31+
<!-- references -->
32+
[release-list]: https://github.com/actions/jekyll-build-pages/releases
33+
[draft-release]: .github/workflows/release.yml
34+
[release]: .github/workflows/release.yml
35+
[release-workflow-runs]: https://github.com/actions/deploy-pages/actions/workflows/release.yml
36+
[action.yml]: https://github.com/actions/jekyll-build-pages/blob/649f5d3c2b2462620c8945f034200e431ceddd29/action.yml#LL31C54-L31C60

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ inputs:
2828
default: ${{ github.token }}
2929
runs:
3030
using: 'docker'
31-
image: 'docker://ghcr.io/actions/jekyll-build-pages:v1.0.4'
31+
image: 'docker://ghcr.io/actions/jekyll-build-pages:v1.0.6'

0 commit comments

Comments
 (0)