-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add action create our own WPT archive (#4)
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Release WPT | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ref: | ||
description: 'Commit or branch name to fetch' | ||
default: master | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout WPT | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 'web-platform-tests/wpt' | ||
ref: ${{ inputs.ref }} | ||
- name: Create Github Release | ||
shell: bash | ||
run: | | ||
RELEASE_NAME=wpt-$(git rev-parse --short HEAD) | ||
gh release create -R ${{ github.repository }} $RELEASE_NAME || true | ||
git archive --prefix=$RELEASE_NAME/ -o $RELEASE_NAME.tar.gz HEAD '*.js' '*.json' '*.md' | ||
gh release upload -R ${{ github.repository }} $RELEASE_NAME $RELEASE_NAME.tar.gz | ||
env: | ||
GITHUB_TOKEN: ${{ github.TOKEN }} |