Skip to content

Commit

Permalink
First code
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvdlinde committed Oct 16, 2023
1 parent e1c41e1 commit 9295408
Show file tree
Hide file tree
Showing 4 changed files with 444 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/opencatalogi-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: My PublicCode Workflow

on:
push:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Update publiccode.yaml
uses: OpenCatalogi/publiccode-action
46 changes: 46 additions & 0 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# .github/workflows/version.yml
name: Git Version

on:
push:
branches:
- master

jobs:
release-managment:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }} # checkout the correct branch name
fetch-depth: 0 # fetch the whole repo history

#Based on https://github.com/marketplace/actions/git-version
- name: Git Version
id: version
uses: codacy/git-version@2.7.1
with:
release-branch: master
dev-branch: development

- name: Use the version
run: |
echo ${{ steps.version.outputs.version }}
#https://github.com/marketplace/actions/zip-release
- name: Archive Release
uses: thedoctor0/zip-release@main
with:
type: 'zip'
filename: 'release.zip'
exclusions: '*.git* /*node_modules/* .editorconfig'
#https://github.com/marvinpinto/action-automatic-releases
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ steps.version.outputs.version }}
prerelease: false
title: "Release ${{ steps.version.outputs.version }}"
files: |
LICENSE.md
release.zip
Loading

0 comments on commit 9295408

Please sign in to comment.