Skip to content

Commit

Permalink
Add deploy workflow via GitHub Actions [skip travis] [skip appveyor]
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeu committed Oct 30, 2024
1 parent 7e43eb3 commit 4677b3f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Deploy"

on:
workflow_dispatch:

jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 5
submodules: recursive
- name: Install texlive
timeout-minutes: 5
run: |
sudo apt-get update --fix-missing
sudo apt-get install -y texlive
- name: Configure
run: |
./autogen.sh
./configure --enable-shared --enable-mat73 --enable-extended-sparse --with-pic --with-hdf5=${GITHUB_WORKSPACE}/hdf5-1.14.5/hdf5 CFLAGS="-O3" CPPFLAGS="-DNDEBUG"
- name: Build documentation
run: make -C documentation pdf html MAKEINFOFLAGS=--no-split
- name: Build distribution
run: |
make dist-gzip
make dist-zip
- name: Deploy to BB
run: |
curl -X POST -H "Authorization: Bearer ${{ secrets.BBTOKEN }}" https://api.bitbucket.org/2.0/repositories/tbeu/downloads/downloads -F files=@./documentation/matio_user_guide.html -F files=@./documentation/matio_user_guide.pdf -F files=@./matio-1.5.28.tar.gz -F files=@./matio-1.5.28.zip

0 comments on commit 4677b3f

Please sign in to comment.