This commit is contained in:
parent
2fe580eff4
commit
c04e8522ea
34
.github/workflows/release.yml
vendored
34
.github/workflows/release.yml
vendored
@ -1,36 +1,12 @@
|
|||||||
name: Generate Release
|
name: Test Workflow
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- chrome-docker
|
- chrome-docker
|
||||||
|
|
||||||
permissions: write-all
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release_zip:
|
hello_world:
|
||||||
name: Release Chromium Docker Image
|
runs-on: ubuntu-latest
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Hello World Action
|
||||||
uses: actions/checkout@v4
|
run: echo "Hello, World!"
|
||||||
|
|
||||||
- name: Create Zip
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
REPO_NAME="${GITHUB_REPOSITORY##*/}"
|
|
||||||
TAG_NAME="${GITHUB_REF_NAME}"
|
|
||||||
ZIP_NAME="${REPO_NAME}-${TAG_NAME}.zip"
|
|
||||||
echo "ZIP_NAME=${ZIP_NAME}" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
mkdir -p dist
|
|
||||||
zip -r "dist/${ZIP_NAME}" . \
|
|
||||||
-x ".git/*" \
|
|
||||||
-x "dist/*"
|
|
||||||
|
|
||||||
- name: Upload Release Zip
|
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
with:
|
|
||||||
files: dist/${{ env.ZIP_NAME }}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user