Skip to content

Instantly share code, notes, and snippets.

@klapperkopp
Created January 16, 2024 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klapperkopp/7114b582fec08e1346f106ed9f3955ff to your computer and use it in GitHub Desktop.
Save klapperkopp/7114b582fec08e1346f106ed9f3955ff to your computer and use it in GitHub Desktop.
Git for creating an uploadable release for a Vonage Cloud Runtime (VCR) package for Vonage Code Hub.
name: create-vcr-marketplace-package
run-name: ${{ github.actor }} is creating a new markettplace app release
on:
push:
tags:
- "release-*"
jobs:
create-zip-and-upload:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm i
- name: Zip Release
id: zip-release
uses: TheDoctor0/zip-release@0.7.6
with:
type: "zip"
directory: "."
path: "."
filename: "release.zip"
exclusions: "*.git* .git/* *.DS_Store .env create_package.sh .gitignore *.log .github/* .vcr/*"
- name: Upload a Build Artifact
id: upload-release-artifact
uses: actions/upload-artifact@v4.0.0
with:
path: "./release.zip"
- name: Output Artifact ID
run: echo 'Artifact ID is ${{ steps.upload-release-artifact.outputs.artifact-id }}'
- name: Create release from artifact
uses: ncipollo/release-action@v1
with:
artifacts: "./release.zip"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment