Skip to content

Commit

Permalink
Merge pull request #263 from ubuntu/release-workflow-deeng-350
Browse files Browse the repository at this point in the history
Implements the release workflow
  • Loading branch information
toktamis committed Aug 9, 2022
2 parents 7dc7473 + e530a7d commit 46473ce
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yaml
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

0 comments on commit 46473ce

Please sign in to comment.