mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-25 10:01:00 +00:00
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 4. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2...v4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
84 lines
2.1 KiB
YAML
84 lines
2.1 KiB
YAML
name: Snap.
|
|
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- '**.md'
|
|
- 'changelog.txt'
|
|
- 'LEGAL'
|
|
- 'LICENSE'
|
|
- '.github/**'
|
|
- '!.github/workflows/snap.yml'
|
|
- 'Telegram/build/**'
|
|
- 'Telegram/Resources/uwp/**'
|
|
- 'Telegram/Resources/winrc/**'
|
|
- 'Telegram/SourceFiles/platform/win/**'
|
|
- 'Telegram/SourceFiles/platform/mac/**'
|
|
- 'Telegram/Telegram/**'
|
|
- 'Telegram/configure.bat'
|
|
- 'Telegram/Telegram.plist'
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- '**.md'
|
|
- 'changelog.txt'
|
|
- 'LEGAL'
|
|
- 'LICENSE'
|
|
- '.github/**'
|
|
- '!.github/workflows/snap.yml'
|
|
- 'Telegram/build/**'
|
|
- 'Telegram/Resources/uwp/**'
|
|
- 'Telegram/Resources/winrc/**'
|
|
- 'Telegram/SourceFiles/platform/win/**'
|
|
- 'Telegram/SourceFiles/platform/mac/**'
|
|
- 'Telegram/Telegram/**'
|
|
- 'Telegram/configure.bat'
|
|
- 'Telegram/Telegram.plist'
|
|
|
|
jobs:
|
|
|
|
snap:
|
|
name: Ubuntu
|
|
runs-on: ubuntu-20.04
|
|
|
|
env:
|
|
UPLOAD_ARTIFACT: "true"
|
|
|
|
steps:
|
|
- name: Clone.
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: recursive
|
|
|
|
- name: First set up.
|
|
run: |
|
|
sudo iptables -P FORWARD ACCEPT
|
|
sudo snap install --classic snapcraft
|
|
sudo usermod -aG lxd $USER
|
|
sudo snap run lxd init --auto
|
|
sudo snap run lxd waitready
|
|
|
|
- name: Free up some disk space.
|
|
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be
|
|
|
|
- name: Telegram Desktop snap build.
|
|
run: sg lxd -c 'snap run snapcraft --verbosity=debug'
|
|
|
|
- name: Move artifact.
|
|
if: env.UPLOAD_ARTIFACT == 'true'
|
|
run: |
|
|
artifact_name=$(echo telegram-desktop_*.snap)
|
|
echo "ARTIFACT_NAME=$artifact_name" >> $GITHUB_ENV
|
|
|
|
mkdir artifact
|
|
mv $artifact_name artifact
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
if: env.UPLOAD_ARTIFACT == 'true'
|
|
name: Upload artifact.
|
|
with:
|
|
name: ${{ env.ARTIFACT_NAME }}
|
|
path: artifact
|