Move Gitea workflows to repository root
This commit is contained in:
46
.gitea/workflows/release-dry-run.yml
Normal file
46
.gitea/workflows/release-dry-run.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
name: Release Dry Run
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
release-dry-run:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: opera-cache-cleaner-extension
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Verify release documentation
|
||||
shell: bash
|
||||
run: |
|
||||
test -f README.md
|
||||
test -f CHANGELOG.md
|
||||
test -f SECURITY.md
|
||||
test -f docs/release-checklist.md
|
||||
test -f docs/security-review.md
|
||||
|
||||
- name: Check for unresolved template placeholders
|
||||
shell: bash
|
||||
run: |
|
||||
if grep -RInE 'PROJECT[_]NAME|PROJECT[_]DESCRIPTION|REPOSITORY[_]OWNER|REPOSITORY[_]NAME|PACKAGE[_]NAME|ARTIFACT[_]NAME|ARTIFACT[_]OUTPUT[_]DIRECTORY|BUILD[_]COMMAND|TEST[_]COMMAND|LINT[_]COMMAND|AUDIT[_]COMMAND' . --exclude-dir=.git --exclude-dir=dist; then
|
||||
echo "Unresolved template placeholders found."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Build extension archive
|
||||
shell: bash
|
||||
run: |
|
||||
rm -rf dist
|
||||
mkdir -p dist/package
|
||||
cp manifest.json background.js dist/package/
|
||||
cp -R popup icons dist/package/
|
||||
cd dist/package
|
||||
zip -r ../opera-cache-cleaner-extension.zip .
|
||||
test -s ../opera-cache-cleaner-extension.zip
|
||||
Reference in New Issue
Block a user