Skip to content

Commit

Permalink
Release openapi-explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
ananthb committed Oct 4, 2024
1 parent e94e227 commit 87b36fd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 34 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/build.yml

This file was deleted.

31 changes: 27 additions & 4 deletions .github/workflows/publish.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,34 @@
name: Create and publish openapi-explorer image
name: Publish and release openapi-explorer image

on:
push:
branches: ['main']
release:
types:
- created

jobs:
build-and-push-image:
build_zip:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '16.9.1'
cache: 'yarn'
- name: Build
env:
version: ${{ github.ref_name }}
run: |
yarn install --dev
yarn build
zip -r openapi-explorer_${version}.zip public
- name: Release
uses: softprops/action-gh-release@v2
with:
files: openapi-explorer*.zip

build_image:
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down

0 comments on commit 87b36fd

Please sign in to comment.