Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ridhwaans committed Oct 28, 2024
1 parent ee297ef commit c4020ca
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
name: "Release"

on:
workflow_dispatch:
push:
branches:
- main
inputs:
create_release:
description: "Should this push create a release?"
required: true
default: "false"
type: boolean

jobs:
release:
if: ${{ github.ref == 'refs/heads/main' && github.event.inputs.create_release == 'true' }}
runs-on: ubuntu-24.04
permissions:
packages: write
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4

- name: "Publish"
- name: Publish
uses: devcontainers/action@v1
with:
publish-features: "true"
base-path-to-features: "./src"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c4020ca

Please sign in to comment.