Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
piniom committed Jun 12, 2024
1 parent ffe25d1 commit d167807
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Create Release

on:
push:
branches:
- master
env:
REGISTRY: ghcr.io
IMAGE_NAME: piniom/nspyc-pandoc

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Run Container and Generate PDF
run: docker run --rm -v ${{ github.workspace }}:/data blang/latex latexmk -pdf -outdir=compiled /data/main.tex -f
- name: Extract release version
id: extract_value
run: |
RELEASE_VERSION=$(grep '/^version = ' Cargo.toml | awk '{print $NF}')
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: ${{ secrets.GITHUB_TOKEN}}
prerelease: false
automatic_release_tag: ${{ github.ref_name }}-${{ env.RELEASE_VERSION }}
files: |
compiled/main.pdf
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
rustfft = "6.2.0"
proptest = { version = "1.4.0", optional = true }
concrete-ntt = {version = "0.1.2", features = ["nightly"]}
concrete-ntt = { version = "0.1.2", features = ["nightly"] }
clap = { version = "4.5.4", features = ["derive"] }
rand = "0.8.5"

Expand All @@ -25,4 +25,3 @@ path = "src/main.rs"
[features]
use-proptest = ["proptest"]
# default = ["use-proptest"]

0 comments on commit d167807

Please sign in to comment.