Skip to content

Commit

Permalink
Merge pull request #8 from AlgebraicJulia/ci_cd
Browse files Browse the repository at this point in the history
BUILD: move to organization level github actions
  • Loading branch information
epatters authored Jun 30, 2023
2 parents 9fc227b + 7fe0731 commit 7109ce4
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 70 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/CI.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/CompatHelper.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/julia_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Julia CI/CD

on:
schedule:
- cron: 0 0 * * *
push:
branches: ["main"]
tags: ["*"]
pull_request:
workflow_dispatch:
inputs:
action:
description: "Action"
required: true
default: "test"
type: choice
options:
- test
- release
version:
description: "Tag and release version:"
required: false

permissions:
actions: read
checks: read
contents: write
deployments: read
discussions: read
issues: read
packages: read
pages: read
pull-requests: write
repository-projects: read
security-events: read
statuses: read

jobs:
CI:
if: github.event_name == 'pull_request' || github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.action == 'test')
uses: AlgebraicJulia/.github/.github/workflows/julia_ci.yml@main
secrets: inherit
CompatHelper:
if: github.event_name == 'schedule'
uses: AlgebraicJulia/.github/.github/workflows/julia_compat.yml@main
secrets: inherit
Release:
if: github.event_name == 'workflow_dispatch' && inputs.action == 'release' && inputs.version != ''
uses: AlgebraicJulia/.github/.github/workflows/julia_release.yml@main
secrets: inherit

0 comments on commit 7109ce4

Please sign in to comment.