Skip to content

Commit

Permalink
Add packaging and README.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
dizys committed Feb 12, 2022
1 parent 2fe2469 commit 79a23c7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
33 changes: 31 additions & 2 deletions .github/workflows/evaluation.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Evaluation

on:
push:
branches:
- main
branches: [main]
tags: ["*"]

jobs:
build:
Expand Down Expand Up @@ -41,3 +42,31 @@ jobs:
- name: Grade
run: |
cat GRADE.txt
echo 'GRADE<<EOF' >> $GITHUB_ENV
cat GRADE.txt >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Get tag name
if: startsWith(github.ref, 'refs/tags/')
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Final test
if: startsWith(github.ref, 'refs/tags/')
run: |
./tagger tag data/WSJ_23.words -o submission.pos
- name: Package
if: startsWith(github.ref, 'refs/tags/')
run: |
cp README.txt zz2960_HW3_README.txt
cp src/main.py main_zz2960_HW3.py
zip -r zz2960-HW3_${TAG}.zip README.md submission.pos main_zz2960_HW3.py
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
body: ${{ env.GRADE }}
files: |
zz2960-HW3_${{ env.TAG }}.zip
GRADE.txt
2 changes: 0 additions & 2 deletions README.md → README.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# nyu-nlp-homework-3

NYU NLP Homework 3: Implement a Viterbi HMM POS tagger

0 comments on commit 79a23c7

Please sign in to comment.