Skip to content

Update main.yml

Update main.yml #373

Workflow file for this run

name: BeneBlacklist
on:
push:
branches:
- main
workflow_dispatch:
jobs:
new-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Exclude unwanted files and create ZIP
run: |
mkdir temp_zip
zip -r temp_zip/BeneBlacklist.zip . -x '.github/*' '.gitignore' 'pkgmeta.yaml'
timestamp=$(date +"%Y-%m-%d")
zip -r "BeneBlacklist-$timestamp.zip" temp_zip/BeneBlacklist.zip
rm -rf temp_zip
- name: Create Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Todays Build"
files: |
BeneBlacklist-*.zip