@@ -31,20 +31,16 @@ jobs:
3131 conda install -c conda-forge pip
3232 conda install -c conda-forge gsl
3333
34- - name : Build package
34+ - name : Build wheels
3535 run : |
3636 python setup.py sdist bdist_wheel
3737
38- - name : run tests
38+ - name : Run tests
3939 run : |
4040 conda install -c conda-forge numpy
4141 python setup.py install
4242 python conda-recipe/run_test.py
4343
44- # - name: show content
45- # run: |
46- # ls -l ${{ github.workspace }}/dist
47-
4844 # - uses: actions/upload-artifact@v2
4945 # with:
5046 # name: diffpy2-${{ matrix.os }}-${{ matrix.python-version }}
@@ -62,35 +58,34 @@ jobs:
6258 tag : 1.4.0
6359 body : This is an alpha build of the pdffit2 library (1.4.0)
6460
65- # upload:
66- # steps:
67- # - name: Checkout target repo
68- # uses: actions/checkout@v3
69- # env:
70- # REPO: easyScience/pypi
71- # REPO_PATH: pypi
72- # with:
73- # fetch-depth: 0
74- # token: ${{ secrets.ES_TOKEN }}
75- # repository: ${{ env.REPO }}
76- # path: ${{ env.REPO_PATH }}
77-
78- # - name: Copy index to new repo
79- # env:
80- # SOURCE: index.html
81- # TARGET: pypi/easysciencecore/
82- # run: cp ${{ env.SOURCE }} ${{ env.TARGET }}
83- # - name: Push
84- # env:
85- # REPO_PATH: pypi
86- # GIT_USERNAME: action
87- # GIT_EMAIL: action@github.com
88- # run: |
89- # cd ${{ env.REPO_PATH }}
90- # git config --local user.name "${{ env.GIT_USERNAME }}"
91- # git config --local user.email "${{ env.GIT_EMAIL }}"
92- # git add .
93- # if [[ `git status --porcelain` ]]; then
94- # git commit -m "Github Actions Automatically Built in `date +"%Y-%m-%d %H:%M"`"
95- # git push
61+ - name : Checkout target repo
62+ uses : actions/checkout@v3
63+ env :
64+ REPO : easyScience/pypi
65+ REPO_PATH : pypi
66+ with :
67+ fetch-depth : 0
68+ token : ${{ secrets.ES_TOKEN }}
69+ repository : ${{ env.REPO }}
70+ path : ${{ env.REPO_PATH }}
71+ ref : " pdffit" # temporarily, switch branch from master
72+ - name : Copy index to new repo
73+ env :
74+ SOURCE : index.html
75+ TARGET : pypi/pdffit2/
76+ run : cp ${{ env.SOURCE }} ${{ env.TARGET }}
77+ - name : Push
78+ env :
79+ REPO_PATH : pypi
80+ GIT_USERNAME : action
81+ GIT_EMAIL : action@github.com
82+ run : |
83+ cd ${{ env.REPO_PATH }}
84+ git config --local user.name "${{ env.GIT_USERNAME }}"
85+ git config --local user.email "${{ env.GIT_EMAIL }}"
86+ git add .
87+ if [[ `git status --porcelain` ]]; then
88+ git commit -m "Github Actions Automatically Built in `date +"%Y-%m-%d %H:%M"`"
89+ git push
90+ fi
9691 # fi
0 commit comments