mirror of
https://github.com/xemu-project/xemu.git
synced 2026-10-20 17:49:17 +02:00
Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) from 4.0.0 to 4.1.0. - [Release notes](https://github.com/peaceiris/actions-gh-pages/releases) - [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md) - [Commits](https://github.com/peaceiris/actions-gh-pages/compare/4f9cc6602d3f66b9c108549d475ec49e8ef4d45e...84c30a85c19949d7eee79c4ff27748b70285e453) --- updated-dependencies: - dependency-name: peaceiris/actions-gh-pages dependency-version: 4.1.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
# Sync archive version of source (including submodule code) to the
|
|
# ppa-snapshot branch to work around limitations of the Launchpad platform,
|
|
# namely: no network egress on package build, no custom scripting in source
|
|
# package creation.
|
|
|
|
name: Update PPA Snapshot
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
release:
|
|
description: "Release to use for snapshot"
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
push_to_ppa:
|
|
name: Push to PPA Snapshot Branch
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Download release source
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
run: gh release download "${{ inputs.release }}" --repo="${GITHUB_REPOSITORY}" -p 'xemu-*.tar.zst'
|
|
- name: Extract source package
|
|
run: |
|
|
mkdir src
|
|
tar -C src -xf xemu-*.tar.zst --strip-components=2
|
|
|
|
# Ensure subprojects are uploaded
|
|
find src/subprojects -name "*.gitignore" -exec rm {} \;
|
|
- name: Create minimal changelog
|
|
run: |
|
|
pushd src
|
|
echo -e "\
|
|
xemu (1:$(cat XEMU_VERSION)-0) unstable; urgency=medium\n\
|
|
Built from $(cat XEMU_VERSION)\n\
|
|
-- Matt Borgerson <contact@mborgerson.com> $(date -R)" > debian/changelog
|
|
popd
|
|
- name: Deploy source archive to branch
|
|
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./src
|
|
publish_branch: ppa-snapshot
|
|
force_orphan: true
|