mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-07-08 18:06:30 +00:00
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2 to 3. - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/softprops/action-gh-release/compare/v2...v3) --- updated-dependencies: - dependency-name: softprops/action-gh-release dependency-version: '3' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
name: Build CCExtractor Snap
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
build_snap:
|
|
name: Build Snap package
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Install snapd
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install -y snapd
|
|
|
|
- name: Start snapd
|
|
run: |
|
|
sudo systemctl start snapd.socket
|
|
sudo systemctl start snapd
|
|
|
|
- name: Install Snapcraft
|
|
run: |
|
|
sudo snap install core22
|
|
sudo snap install snapcraft --classic
|
|
|
|
- name: Show Snapcraft version
|
|
run: snapcraft --version
|
|
|
|
- name: Build snap
|
|
run: sudo snapcraft --destructive-mode
|
|
|
|
- name: List generated snap
|
|
run: ls -lh *.snap
|
|
|
|
- name: Upload snap as workflow artifact
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: CCExtractor Snap
|
|
path: "*.snap"
|
|
|
|
- name: Upload snap to GitHub Release
|
|
if: github.event_name == 'release'
|
|
uses: softprops/action-gh-release@v3
|
|
with:
|
|
files: "*.snap"
|