当前位置: 首页 > news >正文

这么建设新的网站安卓是哪里开发的

这么建设新的网站,安卓是哪里开发的,上海搬家公司哪家好和便宜,网站免费建站Github通过其Github Pages服务可以user、project或organization提供免费快速的静态托管#xff0c;同时使用Github Actions自动化开发工作流和构建。 1.创建Github仓库 可见性为public。 命名为username.github.io#xff0c;username为你的Github用户名。 2.添加远程仓库…Github通过其Github Pages服务可以user、project或organization提供免费快速的静态托管同时使用Github Actions自动化开发工作流和构建。 1.创建Github仓库 可见性为public。 命名为username.github.iousername为你的Github用户名。 2.添加远程仓库 添加主题前我们就已经使用git init初始化了Hugo网站项目。 现在我们给它关联刚创建的远程仓库username.github.io。 git remote add origin https://github.com/Shadow-Kylin//Shadow-Kylin.github.io.git3.构建网站 hugo4.推送到github git chekcout -m master main git add . git commit -m init commit git push origin main5.修改Pages 6.在本地仓库中创建空文件 mkdir -p .github/workflowstouch .github/workflows/hugo.yaml复制下面内容到刚创建的hugo.yaml。 # Sample workflow for building and deploying a Hugo site to GitHub Pages name: Deploy Hugo site to Pageson:# Runs on pushes targeting the default branchpush:branches:- main# Allows you to run this workflow manually from the Actions tabworkflow_dispatch:# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions:contents: readpages: writeid-token: write# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency:group: pagescancel-in-progress: false# Default to bash defaults:run:shell: bashjobs:# Build jobbuild:runs-on: ubuntu-latestenv:HUGO_VERSION: 0.115.4steps:- name: Install Hugo CLIrun: |wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ sudo dpkg -i ${{ runner.temp }}/hugo.deb - name: Install Dart Sassrun: sudo snap install dart-sass- name: Checkoutuses: actions/checkoutv3with:submodules: recursivefetch-depth: 0- name: Setup Pagesid: pagesuses: actions/configure-pagesv3- name: Install Node.js dependenciesrun: [[ -f package-lock.json || -f npm-shrinkwrap.json ]] npm ci || true- name: Build with Hugoenv:# For maximum backward compatibility with Hugo modulesHUGO_ENVIRONMENT: productionHUGO_ENV: productionrun: |hugo \--gc \--minify \--baseURL ${{ steps.pages.outputs.base_url }}/ - name: Upload artifactuses: actions/upload-pages-artifactv1with:path: ./public# Deployment jobdeploy:environment:name: github-pagesurl: ${{ steps.deployment.outputs.page_url }}runs-on: ubuntu-latestneeds: buildsteps:- name: Deploy to GitHub Pagesid: deploymentuses: actions/deploy-pagesv2我们只需修改branch名称和Hugo的版本即可。 7.提交修改 git add . git commit -m Add workflow git push origin main8.查看部署状态 如此之后每当你从本地存储库中推送更改时GitHub都将重建您的站点并部署更改。 欢迎访问影麟的Hugo博客。
http://www.pierceye.com/news/2950/

相关文章:

  • 在东莞找工作上哪个网站网站开发员纵向发展
  • 需要网站建设的人多吗最好网页设计流程
  • 网站推广策划思维导图网站设计团队分工
  • 网站怎么找的wordpress搜索框插件
  • 汕头网站建设过程宝塔在本地搭建wordpress
  • 网站建设必须要虚拟主机吗自己动手做一个网页
  • 做任务赚q红包的网站ui设计公司有哪些
  • 做汽车微信广告视频网站有哪些项目logo生成器
  • 珠海网站设计哪家好公司网页
  • 网站运营小白可以做吗山东省住房和城乡建设厅注册中心网站
  • 怎么百度做网站正规的外包加工订单网有哪些
  • 如何下载别人的网站模板网站建设(信奈辉煌电商)
  • 湛江网站建设技术托管网站开发需求分析报告
  • php做网站框架钉钉爱客crm
  • 租凭境外服务器做违规网站医院风格 wordpress
  • 三里河网站建设公司两颗米网站建设
  • 英文旅游网站建设唯品会 只做特卖的网站
  • 门户网站是指提供什么的网站上海突发新闻
  • 企业做网站域名需要自己申请吗小程序代理需要
  • 网站 app微信三合一撤销网站备案
  • 网站主页尺寸华为怎么设置安全网站
  • 山东省建设节能协会网站宠物网站开发文档
  • 四川住房和建设厅网站有用的网站地址
  • 如何查到网站建设路由 拦截 网站开发
  • 建设常规的网站报价是多少钱个人网站备案与企业备案
  • 湖北响应式网站制作营销型网站北京
  • 哪个网站做相片书好电子商务的网站开发
  • 昆明网站seo诊断包头索易网站建设
  • seo蒙牛伊利企业网站专业性诊断南京百度推广优化排名
  • 邯郸哪儿能做网站遵义网站制作和推广