Skip to content

Commit 9bd2be6

Browse files
authored
Merge pull request #1 from actions/doc
Document artifacts validation + reformat a few things
2 parents 763007b + 8b46ca5 commit 9bd2be6

4 files changed

Lines changed: 48 additions & 31 deletions

File tree

.github/CODEOWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
* @paper-spa/pages
1+
# Default PR reviewers
2+
* @actions/pages

.github/release-drafter.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
---
2-
name-template: 'v$RESOLVED_VERSION'
3-
tag-template: 'v$RESOLVED_VERSION'
2+
name-template: "v$RESOLVED_VERSION"
3+
tag-template: "v$RESOLVED_VERSION"
44
template: |
55
# Changelog
66
77
$CHANGES
88
99
See details of [all code changes](https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION) since previous release.
1010
categories:
11-
- title: '🚀 Features'
11+
- title: "🚀 Features"
1212
labels:
13-
- 'feature'
14-
- 'enhancement'
15-
- title: '🐛 Bug Fixes'
13+
- "feature"
14+
- "enhancement"
15+
- title: "🐛 Bug Fixes"
1616
labels:
17-
- 'fix'
18-
- 'bugfix'
19-
- 'bug'
20-
- title: '🧰 Maintenance'
17+
- "fix"
18+
- "bugfix"
19+
- "bug"
20+
- title: "🧰 Maintenance"
2121
labels:
22-
- 'infrastructure'
23-
- 'automation'
24-
- 'documentation'
25-
- title: '🏎 Performance'
26-
label: 'performance'
27-
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
22+
- "infrastructure"
23+
- "automation"
24+
- "documentation"
25+
- title: "🏎 Performance"
26+
label: "performance"
27+
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
2828
version-resolver:
2929
major:
3030
labels:
31-
- 'type: breaking'
31+
- "type: breaking"
3232
minor:
3333
labels:
34-
- 'type: enhancement'
34+
- "type: enhancement"
3535
patch:
3636
labels:
37-
- 'type: bug'
38-
- 'type: maintenance'
39-
- 'type: documentation'
40-
default: patch
37+
- "type: bug"
38+
- "type: maintenance"
39+
- "type: documentation"
40+
default: patch

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,28 @@ A composite action for packaging and uploading artifact that can be deployed to
44

55
# Scope
66

7-
⚠️ Official support for building Pages with Actions is in public beta at the moment. The scope is currently limited to **public repositories only**.
7+
⚠️ Official support for building Pages with Actions is in public beta at the moment.
88

99
# Usage
1010

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

1313
<!-- TODO: document custom workflow -->
1414

15+
# Artifact validation
16+
17+
While using this action is optional, we highly recommend it since it takes care of producing (mostly) valid artifacts.
18+
19+
A Pages artifact must:
20+
21+
- Be called `github-pages`
22+
- Be a single [`gzip` archive][gzip] containing a single [`tar` file][tar]
23+
24+
The [`tar` file][tar] must:
25+
26+
- be under 10GB in size
27+
- not contain any symbolic or hard links
28+
1529
# Release instructions
1630

1731
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
3650
<!-- references -->
3751
[pages]: https://pages.github.com
3852
[draft-release]: .github/workflows/draft-release.yml
39-
[release]: .github/workflows/release.yml
53+
[release]: .github/workflows/release.yml
54+
[gzip]: https://en.wikipedia.org/wiki/Gzip
55+
[tar]: https://en.wikipedia.org/wiki/Tar_(computing)

action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
name: 'Upload Pages artifact'
2-
description: 'A composite action that prepares your static assets to be deployed to GitHub Pages'
1+
name: "Upload Pages artifact"
2+
description: "A composite action that prepares your static assets to be deployed to GitHub Pages"
33
inputs:
44
path:
5-
description: 'Path of the directoring containing the static assets.'
5+
description: "Path of the directoring containing the static assets."
66
required: true
7-
default: '_site/'
7+
default: "_site/"
88
retention-days:
9-
description: 'Duration after which artifact will expire in days.'
9+
description: "Duration after which artifact will expire in days."
1010
required: false
11-
default: '1'
11+
default: "1"
1212
runs:
1313
using: composite
1414
steps:

0 commit comments

Comments
 (0)