Skip to content

Release CDDA

Release CDDA #5

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Release CDDA
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
branch:
required: true
type: string
tag:
required: true
type: string
description:
required: false
type: string
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout Branch
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
sparse-checkout: |
ports/cataclysm-dda
fetch-depth: 1
- name: Archive Folder
uses: thedoctor0/[email protected]
with:
type: "zip"
directory: "ports/cataclysm-dda"
filename: "cataclysm-dda.zip"
exclusions: "*.git* /*node_modules/* .editorconfig"
- name: Release
uses: ncipollo/release-action@v1
with:
tag: "${{ inputs.branch }}-${{ inputs.tag }}"
artifacts: "ports/cataclysm-dda/cataclysm-dda.zip"
body: ${{ inputs.description }}
draft: false
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}