Document artifacts validation + reformat a few things

This commit is contained in:
Yoann Chaudet
2022-07-13 11:47:37 -07:00
parent 5abd6d2e03
commit 8b46ca5bf4
4 changed files with 48 additions and 31 deletions

3
.github/CODEOWNERS vendored
View File

@@ -1 +1,2 @@
* @paper-spa/pages # Default PR reviewers
* @actions/pages

View File

@@ -1,6 +1,6 @@
--- ---
name-template: 'v$RESOLVED_VERSION' name-template: "v$RESOLVED_VERSION"
tag-template: 'v$RESOLVED_VERSION' tag-template: "v$RESOLVED_VERSION"
template: | template: |
# Changelog # Changelog
@@ -8,33 +8,33 @@ template: |
See details of [all code changes](https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION) since previous release. See details of [all code changes](https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION) since previous release.
categories: categories:
- title: '🚀 Features' - title: "🚀 Features"
labels: labels:
- 'feature' - "feature"
- 'enhancement' - "enhancement"
- title: '🐛 Bug Fixes' - title: "🐛 Bug Fixes"
labels: labels:
- 'fix' - "fix"
- 'bugfix' - "bugfix"
- 'bug' - "bug"
- title: '🧰 Maintenance' - title: "🧰 Maintenance"
labels: labels:
- 'infrastructure' - "infrastructure"
- 'automation' - "automation"
- 'documentation' - "documentation"
- title: '🏎 Performance' - title: "🏎 Performance"
label: 'performance' label: "performance"
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
version-resolver: version-resolver:
major: major:
labels: labels:
- 'type: breaking' - "type: breaking"
minor: minor:
labels: labels:
- 'type: enhancement' - "type: enhancement"
patch: patch:
labels: labels:
- 'type: bug' - "type: bug"
- 'type: maintenance' - "type: maintenance"
- 'type: documentation' - "type: documentation"
default: patch default: patch

View File

@@ -4,7 +4,7 @@ A composite action for packaging and uploading artifact that can be deployed to
# Scope # Scope
⚠️ Official support for building Pages with Actions is in public beta at the moment. The scope is currently limited to **public repositories only**. ⚠️ Official support for building Pages with Actions is in public beta at the moment.
# Usage # Usage
@@ -12,6 +12,20 @@ See [action.yml](action.yml)
<!-- TODO: document custom workflow --> <!-- TODO: document custom workflow -->
# Artifact validation
While using this action is optional, we highly recommend it since it takes care of producing (mostly) valid artifacts.
A Pages artifact must:
- Be called `github-pages`
- Be a single [`gzip` archive][gzip] containing a single [`tar` file][tar]
The [`tar` file][tar] must:
- be under 10GB in size
- not contain any symbolic or hard links
# Release instructions # Release instructions
In order to release a new version of this Action: In order to release a new version of this Action:
@@ -36,4 +50,6 @@ The scripts and documentation in this project are released under the [MIT Licens
<!-- references --> <!-- references -->
[pages]: https://pages.github.com [pages]: https://pages.github.com
[draft-release]: .github/workflows/draft-release.yml [draft-release]: .github/workflows/draft-release.yml
[release]: .github/workflows/release.yml [release]: .github/workflows/release.yml
[gzip]: https://en.wikipedia.org/wiki/Gzip
[tar]: https://en.wikipedia.org/wiki/Tar_(computing)

View File

@@ -1,14 +1,14 @@
name: 'Upload Pages artifact' name: "Upload Pages artifact"
description: 'A composite action that prepares your static assets to be deployed to GitHub Pages' description: "A composite action that prepares your static assets to be deployed to GitHub Pages"
inputs: inputs:
path: path:
description: 'Path of the directoring containing the static assets.' description: "Path of the directoring containing the static assets."
required: true required: true
default: '_site/' default: "_site/"
retention-days: retention-days:
description: 'Duration after which artifact will expire in days.' description: "Duration after which artifact will expire in days."
required: false required: false
default: '1' default: "1"
runs: runs:
using: composite using: composite
steps: steps: