-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #263 from ubuntu/release-workflow-deeng-350
Implements the release workflow
- Loading branch information
Showing
1 changed file
with
40 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,40 @@ | ||
# This workflow creates and updates a git tag named "latest". | ||
# When a new tag with the name matching "Ubuntu*" is pushed to the repository, | ||
# the "latest" tag is updated to the same commit as the newly pushed tag and | ||
# a new GitHub Release is created as draft, pointing to the "latest" tag. | ||
# The commits added between the previous "latest" and the current one are | ||
# listed in an automatic changelog. Besides the source code, the latest PDB | ||
# archives generated by the previous runs of the "build-wsl" workflow are | ||
# uploaded as release assets. | ||
# | ||
# One human being must then edit the draft release to: | ||
# - Change the release tag from "latest" to the originally pushed "Ubuntu*" tag | ||
# - Clean up the changelog, if required, | ||
# - Upload more assets, maybe? | ||
# - Human things, | ||
# - And then publish the release. | ||
# | ||
# It's important to make sure that the tag points to the exact same commit that | ||
# generated the last app submited to the store. | ||
|
||
name: Draft a new release | ||
on: | ||
push: | ||
tags: | ||
- "Ubuntu*" # Preserving the existing naming convention. | ||
|
||
jobs: | ||
on_tag: | ||
name: Prepare a release draft | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout wiki # The PDB archives are stored inside the wiki. | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ubuntu/wsl.wiki | ||
- uses: "marvinpinto/actions-automatic-releases@v1.2.1" | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
draft: true | ||
automatic_release_tag: latest | ||
files: debug-databases/debug-database-*.tar.zst |