Skip to content

Release WPT

Release WPT #9

Workflow file for this run

name: Release WPT
on:
schedule:
# Runs at 00:15, only on Sunday.
- cron: "15 00 * * 0"
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
# Excludes ~70% of files, making this archive faster to process
git archive --prefix=$RELEASE_NAME/ -o $RELEASE_NAME.tar.gz HEAD ':(exclude)css' ':(exclude)html' ':(exclude)conformance-checkers' ':(exclude)svg'
gh release upload -R ${{ github.repository }} $RELEASE_NAME $RELEASE_NAME.tar.gz
env:
GITHUB_TOKEN: ${{ github.TOKEN }}