Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
Testing Actions
  • Loading branch information
porkyoot authored Apr 1, 2024
1 parent f8eff98 commit f216fef
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
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
- uses: actions/checkout@v3

- name: Download File Action
uses: Minionguyjpro/Download-File-Action@v1
with:
url: https://vanillatweaks.net/download/VanillaTweaks_r815931.zip
path: /tmp/vanilla-tweaks.zip

- uses: montudor/action-zip@v1
with:
args: unzip -n /tmp/vanilla-tweaks.zip -d $GITHUB_WORKSPACE

# Runs a set of commands using the runners shell
- name: Zip Release
uses: TheDoctor0/[email protected]
with:
type: 'zip'
filename: 'crater-ressourcepack.zip'
exclusions: '*.git* *.zip *.xcf *.txt package.json'
- name: 'Automated Version Bump'
uses: 'phips28/gh-action-bump-version@master'
with:
tag-prefix: 'v'

- name: Upload Release
uses: ncipollo/[email protected]
with:
artifacts: "crater-ressourcepack.zip"

0 comments on commit f216fef

Please sign in to comment.