Hasan Iqbal
commited on
Release Patch cannot work as openfactcheck itself is a req
Browse files- .github/workflows/release-manual.yaml +0 -36
- .github/workflows/release-patch.yaml +0 -39
- .github/workflows/release.yaml +1 -1
- README.md +0 -3
.github/workflows/release-manual.yaml
DELETED
|
@@ -1,36 +0,0 @@
|
|
| 1 |
-
name: Release Manual
|
| 2 |
-
|
| 3 |
-
on:
|
| 4 |
-
workflow_dispatch:
|
| 5 |
-
|
| 6 |
-
jobs:
|
| 7 |
-
huggingface_deploy:
|
| 8 |
-
name: Deploy to Hugging Face
|
| 9 |
-
runs-on: ubuntu-latest
|
| 10 |
-
steps:
|
| 11 |
-
- name: Check out code
|
| 12 |
-
uses: actions/checkout@v3
|
| 13 |
-
with:
|
| 14 |
-
ref: ${{ github.head_ref }}
|
| 15 |
-
fetch-depth: 0
|
| 16 |
-
|
| 17 |
-
- name: Setup Git Config
|
| 18 |
-
run: |
|
| 19 |
-
git checkout main
|
| 20 |
-
git config --global user.email "[email protected]"
|
| 21 |
-
git config --global user.name "Hasan Iqbal"
|
| 22 |
-
|
| 23 |
-
- name: Enable HuggingFace Spaces Config
|
| 24 |
-
run: |
|
| 25 |
-
READMEFILE="README.md"
|
| 26 |
-
sed -i 's/<!--/---/g; s/-->/---/g' $READMEFILE
|
| 27 |
-
git add $READMEFILE
|
| 28 |
-
git commit -m "Uncommented HuggingFace Spaces Configuration" || echo "No changes to commit"
|
| 29 |
-
|
| 30 |
-
- name: Wait for 10 seconds
|
| 31 |
-
run: sleep 10
|
| 32 |
-
|
| 33 |
-
- name: Push to Hugging Face
|
| 34 |
-
env:
|
| 35 |
-
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 36 |
-
run: git push https://hasaniqbal777:[email protected]/spaces/hasaniqbal777/OpenFactCheck main --force
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/release-patch.yaml
DELETED
|
@@ -1,39 +0,0 @@
|
|
| 1 |
-
name: Release Patch
|
| 2 |
-
|
| 3 |
-
on:
|
| 4 |
-
push:
|
| 5 |
-
tags: ["v[0-9]+.[0-9]+.[0-9]+"]
|
| 6 |
-
branches: ["*"]
|
| 7 |
-
|
| 8 |
-
jobs:
|
| 9 |
-
huggingface_deploy:
|
| 10 |
-
name: Deploy to Hugging Face
|
| 11 |
-
runs-on: ubuntu-latest
|
| 12 |
-
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
|
| 13 |
-
steps:
|
| 14 |
-
- name: Check out code
|
| 15 |
-
uses: actions/checkout@v3
|
| 16 |
-
with:
|
| 17 |
-
ref: ${{ github.head_ref }}
|
| 18 |
-
fetch-depth: 0
|
| 19 |
-
|
| 20 |
-
- name: Setup Git Config
|
| 21 |
-
run: |
|
| 22 |
-
git checkout main
|
| 23 |
-
git config --global user.email "[email protected]"
|
| 24 |
-
git config --global user.name "Hasan Iqbal"
|
| 25 |
-
|
| 26 |
-
- name: Enable HuggingFace Spaces Config
|
| 27 |
-
run: |
|
| 28 |
-
READMEFILE="README.md"
|
| 29 |
-
sed -i 's/<!--/---/g; s/-->/---/g' $READMEFILE
|
| 30 |
-
git add $READMEFILE
|
| 31 |
-
git commit -m "Uncommented HuggingFace Spaces Configuration" || echo "No changes to commit"
|
| 32 |
-
|
| 33 |
-
- name: Wait for 10 seconds
|
| 34 |
-
run: sleep 10
|
| 35 |
-
|
| 36 |
-
- name: Push to Hugging Face
|
| 37 |
-
env:
|
| 38 |
-
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 39 |
-
run: git push https://hasaniqbal777:[email protected]/spaces/hasaniqbal777/OpenFactCheck main --force
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/release.yaml
CHANGED
|
@@ -2,7 +2,7 @@ name: Release
|
|
| 2 |
|
| 3 |
on:
|
| 4 |
push:
|
| 5 |
-
tags: ["v[0-9]+.[0-9]
|
| 6 |
branches: ["*"]
|
| 7 |
|
| 8 |
jobs:
|
|
|
|
| 2 |
|
| 3 |
on:
|
| 4 |
push:
|
| 5 |
+
tags: ["v[0-9]+.[0-9]+.[0-9]+"]
|
| 6 |
branches: ["*"]
|
| 7 |
|
| 8 |
jobs:
|
README.md
CHANGED
|
@@ -16,9 +16,6 @@ pinned: false
|
|
| 16 |
---
|
| 17 |
|
| 18 |
<p align="center">
|
| 19 |
-
<a href="https://github.com/hasaniqbal777/OpenFactCheck/actions/workflows/release-patch.yaml">
|
| 20 |
-
<img src="https://github.com/hasaniqbal777/OpenFactCheck/actions/workflows/release-patch.yaml/badge.svg" alt="Release Patch">
|
| 21 |
-
</a>
|
| 22 |
<a href="https://github.com/hasaniqbal777/OpenFactCheck/actions/workflows/release.yaml">
|
| 23 |
<img src="https://github.com/hasaniqbal777/OpenFactCheck/actions/workflows/release.yaml/badge.svg" alt="Release">
|
| 24 |
</a>
|
|
|
|
| 16 |
---
|
| 17 |
|
| 18 |
<p align="center">
|
|
|
|
|
|
|
|
|
|
| 19 |
<a href="https://github.com/hasaniqbal777/OpenFactCheck/actions/workflows/release.yaml">
|
| 20 |
<img src="https://github.com/hasaniqbal777/OpenFactCheck/actions/workflows/release.yaml/badge.svg" alt="Release">
|
| 21 |
</a>
|