Skip to content

Commit

Permalink
Merge pull request #1 from heycarl/cicd
Browse files Browse the repository at this point in the history
CI CD
  • Loading branch information
heycarl authored Oct 8, 2023
2 parents 7a16bea + efff03a commit cb00c91
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Create and publish a Docker image

on:
push:
tags:
- v*

env:
CW_NAME: ${{ github.event.repository.name }}

jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
deployments: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive

- name: Build
run: |
python compile.py
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload artifacts
id: upload-release-asset
uses: softprops/action-gh-release@v1
with:
files: |
build/src/report.pdf
Empty file modified compiler/compile.sh
100644 → 100755
Empty file.

0 comments on commit cb00c91

Please sign in to comment.