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:
|
||||
push:
|
||||
branches:
|
||||
- chrome-docker
|
||||
|
||||
permissions: write-all
|
||||
|
||||
jobs:
|
||||
release_zip:
|
||||
name: Release Chromium Docker Image
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
hello_world:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- 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 }}
|
||||
- name: Hello World Action
|
||||
run: echo "Hello, World!"
|
||||
Loading…
x
Reference in New Issue
Block a user